screenshot/screenshot-w.sh

9 lines
186 B
Bash
Raw Permalink Normal View History

2024-10-03 00:29:02 +02:00
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"