Browse Source

Hide cursor when taking selection screenshot

master
Riyyi 3 years ago
parent
commit
ae4d4c3f49
  1. 5
      .local/bin/printscreen

5
.local/bin/printscreen

@ -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"

Loading…
Cancel
Save