🎨 ux(hypr): add the screenshot image as an icon in the notification

This commit is contained in:
Sergio Laín 2024-03-30 13:17:30 +01:00
parent fe79ef3f4a
commit c3b6684dd2
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -56,7 +56,7 @@ function send_notification() {
local message=$([ $CLIPBOARD -eq 1 ] &&
echo "Image copied to the clipboard" ||
echo "Image saved in <i>${1}</i> and copied to the clipboard.")
action=$(notify-send --action "View Image" "Screenshot saved" \
action=$(notify-send -i "$1" --action "View Image" "Screenshot saved" \
"${message}" \
-t "$NOTIF_TIMEOUT" -i "${1}" -a Hyprshot)
if [ -n "$action" ]; then