From bd43b89e09bc16bd872b957e55d16d35e10cadc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 27 Oct 2024 18:41:08 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(hypr):=20add=20open=20in=20fol?= =?UTF-8?q?der=20to=20the=20screenshot=20notifcation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/hypr/scripts/hyprshot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/hypr/scripts/hyprshot b/.config/hypr/scripts/hyprshot index bec7ae1f..09b46399 100755 --- a/.config/hypr/scripts/hyprshot +++ b/.config/hypr/scripts/hyprshot @@ -60,7 +60,7 @@ function send_notification() { local message=$([ $CLIPBOARD -eq 1 ] && echo "Image copied to the clipboard" || echo "Image saved in ${1} 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 }