dotfiles/sway/scripts/printscreen

6 lines
184 B
Plaintext
Raw Normal View History

#! /bin/sh
file=~/Pictures/Screenshots/Screenshot-$(date '+%Y%m%d%H%M%S').png
grim -g "$(slurp)" $file \
&& wl-copy $file \
&& notify-send -i $file "File copied to clipboard"