add scripts

This commit is contained in:
tristan 2023-04-14 18:00:03 +01:00
parent e8be34d9c2
commit e871ce10c7
3 changed files with 58 additions and 9 deletions

9
scripts/screenshot Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
OUT_DIR=${GRIM_DEFAULT_DIR:-~/Pictures/Screenshots/}
mkdir -p "$OUT_DIR"
grim -g "$(slurp -o)" - | wl-copy
notify-send "Screenshot Taken" "to the clipboard"
wl-paste > $OUT_DIR/$(date +"%Y-%m-%dT%H:%M:%SZ").png