Standardize all notification sending

This commit is contained in:
David Heinemeier Hansson
2026-05-17 19:51:29 +02:00
parent 682c6406bd
commit 4e2da8480a
24 changed files with 62 additions and 90 deletions
+2 -2
View File
@@ -1,13 +1,13 @@
notify_update() {
(
action=$(notify-send " Update System" "$1" -u critical -A "default=Update")
action=$(notify-send -a omarchy-action -u critical --hint=string:omarchy-glyph: "Update System" "$1" -A "default=Update")
[[ $action == "default" ]] && omarchy-launch-floating-terminal-with-presentation omarchy-update
) >/dev/null 2>&1 &
}
notify_wifi() {
(
action=$(notify-send "󰖩 Click to Setup Wi-Fi" "Tab to navigate, Space to select, ? for help." -u critical -A "default=Setup")
action=$(notify-send -a omarchy-action -u critical --hint=string:omarchy-glyph:󰖩 "Click to Setup Wi-Fi" "Tab to navigate, Space to select, ? for help." -A "default=Setup")
[[ $action == "default" ]] && omarchy-launch-wifi
) >/dev/null 2>&1 &
}