[shot] hide cursor on screenshot

This commit is contained in:
lara 2020-11-20 19:12:53 +01:00
parent 38e3917e37
commit 17492a7559

View file

@ -22,9 +22,9 @@ mkdir -p "$SCREEN_DIR"
# Let's try to detect Wayland running
if [ -z "$WAYLAND_DISPLAY" ]; then
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
echo "$SCREEN_DIR/$NAME" | xsel -b -i > /dev/null 2>&1
echo "$SCREEN_DIR/$NAME" | xsel --clipboard --input > /dev/null 2>&1
else
check_exists "grim"
check_exists "slop"