Improve actionable notification wrapper

This commit is contained in:
David Heinemeier Hansson committed 2026-05-25 23:51:48 +02:00
1 parent 322d1bc30d
commit af5e918dd5
10 files changed
+107 -26

No files matched your search

+3 -2
View File
@@ -133,8 +133,9 @@ case "$PROCESSING" in
wl-copy --type image/png <"$FILEPATH"
(
ACTION=$(notify-send -a omarchy-action "Screenshot saved to clipboard and file" "Edit with Super + Alt + , (or click this)" -t 10000 --hint="string:image-path:$FILEPATH" -A "default=edit")
[[ $ACTION == "default" ]] && open_editor "$FILEPATH"
if [[ -n $(omarchy-notification-send "Screenshot saved to clipboard and file" "Edit with Super + Alt + , (or click this)" -t 10000 --image "$FILEPATH" -a) ]]; then
open_editor "$FILEPATH"
fi
) >/dev/null 2>&1 &
;;
copy)