feat: notifying user when screenshot is saved
This commit is contained in:
parent
8a4be53955
commit
f9e3cc9b29
1 changed files with 3 additions and 0 deletions
3
hyprshot
3
hyprshot
|
@ -31,6 +31,9 @@ function save_geometry() {
|
||||||
mkdir -p "$SAVEDIR"
|
mkdir -p "$SAVEDIR"
|
||||||
grim -g "${1}" "$SAVE_FULLPATH"
|
grim -g "${1}" "$SAVE_FULLPATH"
|
||||||
wl-copy < "$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
|
else
|
||||||
wl-copy < <(grim -g "${1}" -)
|
wl-copy < <(grim -g "${1}" -)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue