feat: notifying user when screenshot is saved

This commit is contained in:
Gustavo Parreira 2022-11-09 23:00:36 +00:00
parent 8a4be53955
commit f9e3cc9b29
No known key found for this signature in database
GPG key ID: 461165CBB467DD30

View file

@ -31,6 +31,9 @@ function save_geometry() {
mkdir -p "$SAVEDIR"
grim -g "${1}" "$SAVE_FULLPATH"
wl-copy < "$SAVE_FULLPATH"
notify-send "Screenshot saved" \
"Image saved in <i>$SAVE_FULLPATH</i> and copied to the clipboard." \
-i "$SAVE_FULLPATH"
else
wl-copy < <(grim -g "${1}" -)
fi