aboutsummaryrefslogtreecommitdiff
path: root/screenshot.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-10-29 19:51:12 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-10-29 19:51:12 +0100
commit8a53c22b644cb74186e2830e7f34113468a145d5 (patch)
treef5458c5768d08a4fef715fceaab9807edc4c8e2b /screenshot.sh
parent00c7f2f3a5afd604a948e19a7d3cbd08f798fb07 (diff)
downloadscripts-8a53c22b644cb74186e2830e7f34113468a145d5.tar.gz
scripts-8a53c22b644cb74186e2830e7f34113468a145d5.zip
Added option to paste to clipboard for screnshot.sh
Diffstat (limited to 'screenshot.sh')
-rwxr-xr-xscreenshot.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/screenshot.sh b/screenshot.sh
index 5afde9d..4565032 100755
--- a/screenshot.sh
+++ b/screenshot.sh
@@ -2,7 +2,10 @@
# Takes a screenshot
+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" && dunstify -t 800 "Screenshot $name taken."
-[ "$1" = "-a" ] && maim -s -b 2 -c 0.412,0.431,1 -m 8 "$file" && dunstify -t 800 "Screenshot $name taken."
+
+[ "$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."