nix/scripts/screenshot
2023-04-14 18:00:03 +01:00

9 lines
224 B
Bash
Executable file

#!/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