Prefer full option names
This commit is contained in:
@@ -12,14 +12,14 @@ screenshotter="maim"
|
|||||||
|
|
||||||
if [ "$screenshotter" = "scrot" ]; then
|
if [ "$screenshotter" = "scrot" ]; then
|
||||||
fullscreen=""
|
fullscreen=""
|
||||||
selection="-s"
|
selection="--select"
|
||||||
activeWindow="-u"
|
activeWindow="--focused"
|
||||||
filename="-e 'mv \$f $CAPTURE'"
|
filename="--exec 'mv \$f $CAPTURE'"
|
||||||
|
|
||||||
elif [ "$screenshotter" = "maim" ]; then
|
elif [ "$screenshotter" = "maim" ]; then
|
||||||
fullscreen=""
|
fullscreen=""
|
||||||
selection="-s"
|
selection="--select"
|
||||||
activeWindow="-i \$(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
|
||||||
fullscreen="-window root"
|
fullscreen="-window root"
|
||||||
|
|||||||
Reference in New Issue
Block a user