add a command for local screenshots

This commit is contained in:
Rasmus Moorats 2021-06-22 15:27:59 +03:00
parent 79f0d372fc
commit 09c0c0d372

View file

@ -43,3 +43,9 @@ take_screenshot () {
notify-send -t 5000 "$MSG" "$LINK"
return $RETCODE
}
local_screenshot () {
FILENAME=/home/xx/Pictures/ss/$(date '+%F-%H-%M-%S').png
grim -g "$(slurp)" "$FILENAME"
wl-copy < "$FILENAME"
}