aboutsummaryrefslogtreecommitdiff
path: root/screenshot.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-12-13 14:42:20 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-12-13 14:42:20 +0100
commit3bf42f723a523735b2f5d9c7ba81d9bc0f88ea2d (patch)
treeb7e86818d9c0ca7cbc96fc262ad1ebf8d2bf69c8 /screenshot.sh
parenta55fd95dd46584fa224fe25b248373c78bc65638 (diff)
downloadscripts-3bf42f723a523735b2f5d9c7ba81d9bc0f88ea2d.tar.gz
scripts-3bf42f723a523735b2f5d9c7ba81d9bc0f88ea2d.zip
Now screenshots don't show the cursor.
Diffstat (limited to 'screenshot.sh')
-rwxr-xr-xscreenshot.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/screenshot.sh b/screenshot.sh
index 4565032..8b28978 100755
--- a/screenshot.sh
+++ b/screenshot.sh
@@ -6,6 +6,6 @@ borderColor="0.412,0.431,1"
name="$(date +"%y%m%d_%H%M%S")".png
file="$HOME/images/screenshots/""$name"
-[ "$1" = "" ] && maim -m 8 "$file" && notify-send -t 800 "Screenshot $name taken."
-[ "$1" = "-a" ] && maim -s -b 2 -c "$borderColor" -m 8 "$file" && notify-send -t 800 "Screenshot $name taken."
-[ "$1" = "-c" ] && maim -s -b 2 -c "$borderColor" -m 8 | xclip -selection clipboard -t image/png && notify-send -t 800 "Screenshot copied to clipboard."
+[ "$1" = "" ] && maim -u -m 8 "$file" && notify-send -t 800 "Screenshot $name taken."
+[ "$1" = "-a" ] && maim -u -s -b 2 -c "$borderColor" -m 8 "$file" && notify-send -t 800 "Screenshot $name taken."
+[ "$1" = "-c" ] && maim -u -s -b 2 -c "$borderColor" -m 8 | xclip -selection clipboard -t image/png && notify-send -t 800 "Screenshot copied to clipboard."