Browse Source

Prefer full option names

master
Riyyi 4 years ago
parent
commit
bf5e49cbc2
  1. 10
      .local/bin/printscreen

10
.local/bin/printscreen

@ -12,14 +12,14 @@ screenshotter="maim"
if [ "$screenshotter" = "scrot" ]; then
fullscreen=""
selection="-s"
activeWindow="-u"
filename="-e 'mv \$f $CAPTURE'"
selection="--select"
activeWindow="--focused"
filename="--exec 'mv \$f $CAPTURE'"
elif [ "$screenshotter" = "maim" ]; then
fullscreen=""
selection="-s"
activeWindow="-i \$(xdotool getactivewindow)"
selection="--select"
activeWindow="--window \$(xdotool getactivewindow)"
filename="$CAPTURE/$(date '+%Y-%m-%d-%H%M%S')_maim.png"
elif [ "$screenshotter" = "magick import" ] || [ "$screenshotter" = "import" ]; then
fullscreen="-window root"

Loading…
Cancel
Save