screenshot/screenshot-w.sh
2024-10-02 23:29:02 +01:00

9 lines
186 B
Bash
Executable File

set -x
filename=$(date +"%d:%m:%Y-%H:%M:%S-screenshot.png")
touch $HOME/Screenshots/$filename
grim -g "$(slurp)" "$HOME/Screenshots/$filename"
wl-copy < "$HOME/Screenshots/$filename"