Browse Source

[shot] hide cursor on screenshot

master
lara 5 years ago
parent
commit
17492a7559
  1. 4
      bin/shot

4
bin/shot

@ -22,9 +22,9 @@ mkdir -p "$SCREEN_DIR"
# Let's try to detect Wayland running # Let's try to detect Wayland running
if [ -z "$WAYLAND_DISPLAY" ]; then if [ -z "$WAYLAND_DISPLAY" ]; then
check_exists "maim" check_exists "maim"
maim -s "$SCREEN_DIR/$NAME" maim --hidecursor --select "$SCREEN_DIR/$NAME"
# Fail silently if xsel isn't installed, the clipboard feature isn't critical # Fail silently if xsel isn't installed, the clipboard feature isn't critical
echo "$SCREEN_DIR/$NAME" | xsel -b -i > /dev/null 2>&1 echo "$SCREEN_DIR/$NAME" | xsel --clipboard --input > /dev/null 2>&1
else else
check_exists "grim" check_exists "grim"
check_exists "slop" check_exists "slop"

Loading…
Cancel
Save