✨ feat(hypr): add open in folder to the screenshot notifcation
This commit is contained in:
parent
ce99f78d13
commit
bd43b89e09
1 changed files with 4 additions and 1 deletions
|
@ -60,7 +60,7 @@ function send_notification() {
|
||||||
local message=$([ $CLIPBOARD -eq 1 ] &&
|
local message=$([ $CLIPBOARD -eq 1 ] &&
|
||||||
echo "Image copied to the clipboard" ||
|
echo "Image copied to the clipboard" ||
|
||||||
echo "Image saved in <i>${1}</i> and 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}" \
|
"${message}" \
|
||||||
-t "$NOTIF_TIMEOUT" -i "${1}" -a Hyprshot)
|
-t "$NOTIF_TIMEOUT" -i "${1}" -a Hyprshot)
|
||||||
|
|
||||||
|
@ -75,6 +75,9 @@ function send_notification() {
|
||||||
notify-send -u critical "Cannot Edit Image" "Install Satty"
|
notify-send -u critical "Cannot Edit Image" "Install Satty"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
"folder")
|
||||||
|
nemo "$1"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue