From ae4d4c3f490b43387c11b0ff17bb42751da3aae2 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 12 Jul 2021 00:22:48 +0200 Subject: [PATCH] Hide cursor when taking selection screenshot --- .local/bin/printscreen | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.local/bin/printscreen b/.local/bin/printscreen index d7456eb..e609171 100755 --- a/.local/bin/printscreen +++ b/.local/bin/printscreen @@ -15,10 +15,9 @@ if [ "$screenshotter" = "scrot" ]; then selection="--select" activeWindow="--focused" filename="--exec 'mv \$f $CAPTURE'" - elif [ "$screenshotter" = "maim" ]; then fullscreen="" - selection="--select" + selection="--select --hidecursor" activeWindow="--window \$(xdotool getactivewindow)" filename="$CAPTURE/$(date '+%Y-%m-%d-%H%M%S')_maim.png" elif [ "$screenshotter" = "magick import" ] || [ "$screenshotter" = "import" ]; then @@ -36,7 +35,7 @@ Selection Active Window Fullscreen" -choice=$(echo "$options" | rofi -no-fixed-num-lines -dmenu -i -p "Screenshot") || exit 0 +choice="$(echo "$options" | rofi -no-fixed-num-lines -dmenu -i -p "Screenshot")" || exit 0 command="$screenshotter" [ "$choice" = "Selection" ] && command="$command $selection"