dotfiles/sway/scripts/printscreen

8 lines
204 B
Plaintext
Raw Normal View History

#! /bin/sh
2019-12-11 05:52:23 +00:00
# -*- sh -*-
file=~/media/pictures/Screenshots/Screenshot-$(date '+%Y%m%d%H%M%S').png
grim -g "$(slurp)" $file \
&& wl-copy $file \
2019-12-11 05:52:23 +00:00
&& notify-send -i $file "File copied to clipboard"