From bf5e49cbc2096723bc51ad87197f7a56329912d4 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sun, 6 Jun 2021 00:05:41 +0200 Subject: [PATCH] Prefer full option names --- .local/bin/printscreen | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.local/bin/printscreen b/.local/bin/printscreen index 7ba3dc3..d7456eb 100755 --- a/.local/bin/printscreen +++ b/.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"