Hide cursor when taking selection screenshot

This commit is contained in:
Riyyi
2021-07-12 00:22:48 +02:00
parent 5065ad17a6
commit ae4d4c3f49
+2 -3
View File
@@ -15,10 +15,9 @@ if [ "$screenshotter" = "scrot" ]; then
selection="--select" selection="--select"
activeWindow="--focused" activeWindow="--focused"
filename="--exec 'mv \$f $CAPTURE'" filename="--exec 'mv \$f $CAPTURE'"
elif [ "$screenshotter" = "maim" ]; then elif [ "$screenshotter" = "maim" ]; then
fullscreen="" fullscreen=""
selection="--select" selection="--select --hidecursor"
activeWindow="--window \$(xdotool getactivewindow)" activeWindow="--window \$(xdotool getactivewindow)"
filename="$CAPTURE/$(date '+%Y-%m-%d-%H%M%S')_maim.png" filename="$CAPTURE/$(date '+%Y-%m-%d-%H%M%S')_maim.png"
elif [ "$screenshotter" = "magick import" ] || [ "$screenshotter" = "import" ]; then elif [ "$screenshotter" = "magick import" ] || [ "$screenshotter" = "import" ]; then
@@ -36,7 +35,7 @@ Selection
Active Window Active Window
Fullscreen" 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" command="$screenshotter"
[ "$choice" = "Selection" ] && command="$command $selection" [ "$choice" = "Selection" ] && command="$command $selection"