diff options
Diffstat (limited to 'scripts/Scripts/screenshot')
| -rwxr-xr-x | scripts/Scripts/screenshot | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/Scripts/screenshot b/scripts/Scripts/screenshot new file mode 100755 index 0000000..5ed5b7d --- /dev/null +++ b/scripts/Scripts/screenshot @@ -0,0 +1,15 @@ +#!/bin/bash + +mkdir -p ~/Pictures/Screenshots + +FILE=~/Pictures/Screenshots/$(date '+%Y-%m-%d_%H-%M-%S').png + +if [[ "$1" == "snip" ]]; then + grim -g "$(slurp)" "$FILE" || exit 1 +else + grim "$FILE" || exit 1 +fi + +wl-copy --type image/png < "$FILE" + +notify-send "Screenshot Taken" "Saved to $FILE" -i "$FILE" |
