feat(hypr): add open in folder to the screenshot notifcation

This commit is contained in:
Sergio Laín 2024-10-27 18:41:08 +01:00
parent ce99f78d13
commit bd43b89e09
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438

View file

@ -60,7 +60,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 -i "$1" --action="view=View" --action="edit=Edit" "Screenshot saved" \
action=$(notify-send -i "$1" --action="view=View" --action="edit=Edit" --action="folder=Open on Folder" "Screenshot saved" \
"${message}" \
-t "$NOTIF_TIMEOUT" -i "${1}" -a Hyprshot)
@ -75,6 +75,9 @@ function send_notification() {
notify-send -u critical "Cannot Edit Image" "Install Satty"
fi
;;
"folder")
nemo "$1"
;;
esac
}