Hide cursor when taking selection screenshot
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user