From 58a16dfebc58cbcd4ef3ffbb91e119a83902301e Mon Sep 17 00:00:00 2001 From: Patrick Bochenek <47920744+patrick-boc@users.noreply.github.com> Date: Tue, 24 Mar 2026 06:56:12 -0700 Subject: [PATCH] Set low urgency for immediate-feedback notifications (#5056) Some users may choose to disable notification timeout for normal-level notifications to ensure no notifications are missed when the user is away from the screen. However, there are several Omarchy notifications that only serve as an immediate feedback for a user action, such as "Screensaver enabled" or "Editing config file foo.conf", for which disabling the timeout is not desirable. This commit drops the urgency level for such notification to low, allowing configuring a different timeout value for them. Notifications with an explicitly set timeout are excluded from this commit. --- bin/omarchy-font-set | 2 +- bin/omarchy-hyprland-monitor-scaling-cycle | 2 +- bin/omarchy-hyprland-window-single-square-aspect-toggle | 4 ++-- bin/omarchy-hyprland-workspace-layout-toggle | 2 +- bin/omarchy-launch-screensaver | 2 +- bin/omarchy-menu | 2 +- bin/omarchy-toggle-idle | 4 ++-- bin/omarchy-toggle-nightlight | 4 ++-- bin/omarchy-toggle-notification-silencing | 4 ++-- bin/omarchy-toggle-screensaver | 4 ++-- bin/omarchy-toggle-suspend | 4 ++-- config/omarchy/hooks/font-set.sample | 2 +- config/omarchy/hooks/post-update.sample | 2 +- config/omarchy/hooks/theme-set.sample | 2 +- default/hypr/bindings/utilities.conf | 4 ++-- 15 files changed, 22 insertions(+), 22 deletions(-) diff --git a/bin/omarchy-font-set b/bin/omarchy-font-set index 9c6c369b..6b5bf190 100755 --- a/bin/omarchy-font-set +++ b/bin/omarchy-font-set @@ -33,7 +33,7 @@ if [[ -n $font_name ]]; then omarchy-restart-swayosd if pgrep -x ghostty; then - notify-send " You must restart Ghostty to see font change" + notify-send -u low " You must restart Ghostty to see font change" fi omarchy-hook font-set "$font_name" diff --git a/bin/omarchy-hyprland-monitor-scaling-cycle b/bin/omarchy-hyprland-monitor-scaling-cycle index c673fe5b..a3b24243 100755 --- a/bin/omarchy-hyprland-monitor-scaling-cycle +++ b/bin/omarchy-hyprland-monitor-scaling-cycle @@ -21,4 +21,4 @@ esac hyprctl keyword misc:disable_scale_notification true hyprctl keyword monitor "$ACTIVE_MONITOR,${WIDTH}x${HEIGHT}@${REFRESH_RATE},auto,$NEW_SCALE" hyprctl keyword misc:disable_scale_notification false -notify-send "󰍹 Display scaling set to ${NEW_SCALE}x" +notify-send -u low "󰍹 Display scaling set to ${NEW_SCALE}x" diff --git a/bin/omarchy-hyprland-window-single-square-aspect-toggle b/bin/omarchy-hyprland-window-single-square-aspect-toggle index eb747e78..50ccdac9 100755 --- a/bin/omarchy-hyprland-window-single-square-aspect-toggle +++ b/bin/omarchy-hyprland-window-single-square-aspect-toggle @@ -6,8 +6,8 @@ CURRENT_VALUE=$(hyprctl getoption "layout:single_window_aspect_ratio" 2>/dev/nul # Parse vec2 output: "vec2: [1, 1]" or "vec2: [0, 0]" if [[ $CURRENT_VALUE == *"[1, 1]"* ]]; then hyprctl keyword layout:single_window_aspect_ratio "0 0" - notify-send " Disable single-window square aspect ratio" + notify-send -u low " Disable single-window square aspect ratio" else hyprctl keyword layout:single_window_aspect_ratio "1 1" - notify-send " Enable single-window square aspect" + notify-send -u low " Enable single-window square aspect" fi diff --git a/bin/omarchy-hyprland-workspace-layout-toggle b/bin/omarchy-hyprland-workspace-layout-toggle index 96f4f5af..189a4694 100755 --- a/bin/omarchy-hyprland-workspace-layout-toggle +++ b/bin/omarchy-hyprland-workspace-layout-toggle @@ -11,4 +11,4 @@ case "$CURRENT_LAYOUT" in esac hyprctl keyword workspace $ACTIVE_WORKSPACE, layout:$NEW_LAYOUT -notify-send "󱂬 Workspace layout set to $NEW_LAYOUT" +notify-send -u low "󱂬 Workspace layout set to $NEW_LAYOUT" diff --git a/bin/omarchy-launch-screensaver b/bin/omarchy-launch-screensaver index eac88745..03d1159a 100755 --- a/bin/omarchy-launch-screensaver +++ b/bin/omarchy-launch-screensaver @@ -46,7 +46,7 @@ for m in $(hyprctl monitors -j | jq -r '.[] | .name'); do -e omarchy-cmd-screensaver ;; *) - notify-send "✋ Screensaver only runs in Alacritty, Ghostty, or Kitty" + notify-send -u low "✋ Screensaver only runs in Alacritty, Ghostty, or Kitty" ;; esac done diff --git a/bin/omarchy-menu b/bin/omarchy-menu index 05256313..bbb56fa9 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -54,7 +54,7 @@ present_terminal() { } open_in_editor() { - notify-send "Editing config file" "$1" + notify-send -u low "Editing config file" "$1" omarchy-launch-editor "$1" } diff --git a/bin/omarchy-toggle-idle b/bin/omarchy-toggle-idle index 58f0a85d..a80eec45 100755 --- a/bin/omarchy-toggle-idle +++ b/bin/omarchy-toggle-idle @@ -2,10 +2,10 @@ if pgrep -x hypridle >/dev/null; then pkill -x hypridle - notify-send "󱫖 Stop locking computer when idle" + notify-send -u low "󱫖 Stop locking computer when idle" else uwsm-app -- hypridle >/dev/null 2>&1 & - notify-send "󱫖 Now locking computer when idle" + notify-send -u low "󱫖 Now locking computer when idle" fi pkill -RTMIN+9 waybar diff --git a/bin/omarchy-toggle-nightlight b/bin/omarchy-toggle-nightlight index cb0836ee..e05a1d45 100755 --- a/bin/omarchy-toggle-nightlight +++ b/bin/omarchy-toggle-nightlight @@ -21,10 +21,10 @@ restart_nightlighted_waybar() { if [[ $CURRENT_TEMP == $OFF_TEMP ]]; then hyprctl hyprsunset temperature $ON_TEMP - notify-send " Nightlight screen temperature" + notify-send -u low " Nightlight screen temperature" restart_nightlighted_waybar else hyprctl hyprsunset temperature $OFF_TEMP - notify-send " Daylight screen temperature" + notify-send -u low " Daylight screen temperature" restart_nightlighted_waybar fi diff --git a/bin/omarchy-toggle-notification-silencing b/bin/omarchy-toggle-notification-silencing index c8117059..15ee7b5b 100755 --- a/bin/omarchy-toggle-notification-silencing +++ b/bin/omarchy-toggle-notification-silencing @@ -3,9 +3,9 @@ makoctl mode -t do-not-disturb if makoctl mode | grep -q 'do-not-disturb'; then - notify-send "󰂛 Silenced notifications" + notify-send -u low "󰂛 Silenced notifications" else - notify-send "󰂚 Enabled notifications" + notify-send -u low "󰂚 Enabled notifications" fi pkill -RTMIN+10 waybar diff --git a/bin/omarchy-toggle-screensaver b/bin/omarchy-toggle-screensaver index 2edd4010..9a36ab5e 100755 --- a/bin/omarchy-toggle-screensaver +++ b/bin/omarchy-toggle-screensaver @@ -4,9 +4,9 @@ STATE_FILE=~/.local/state/omarchy/toggles/screensaver-off if [[ -f $STATE_FILE ]]; then rm -f $STATE_FILE - notify-send "󱄄 Screensaver enabled" + notify-send -u low "󱄄 Screensaver enabled" else mkdir -p "$(dirname $STATE_FILE)" touch $STATE_FILE - notify-send "󱄄 Screensaver disabled" + notify-send -u low "󱄄 Screensaver disabled" fi diff --git a/bin/omarchy-toggle-suspend b/bin/omarchy-toggle-suspend index 3c5b0491..ab7d9e76 100755 --- a/bin/omarchy-toggle-suspend +++ b/bin/omarchy-toggle-suspend @@ -4,9 +4,9 @@ STATE_FILE=~/.local/state/omarchy/toggles/suspend-off if [[ -f $STATE_FILE ]]; then rm -f $STATE_FILE - notify-send "󰒲 Suspend now available in system menu" + notify-send -u low "󰒲 Suspend now available in system menu" else mkdir -p "$(dirname $STATE_FILE)" touch $STATE_FILE - notify-send "󰒲 Suspend removed from system menu" + notify-send -u low "󰒲 Suspend removed from system menu" fi diff --git a/config/omarchy/hooks/font-set.sample b/config/omarchy/hooks/font-set.sample index 36d8c3ec..3f0109a9 100644 --- a/config/omarchy/hooks/font-set.sample +++ b/config/omarchy/hooks/font-set.sample @@ -4,4 +4,4 @@ # To put it into use, remove .sample from the name. # Example: Show the name of the theme that was just set. -# notify-send "New font" "Your new font is $1" +# notify-send -u low "New font" "Your new font is $1" diff --git a/config/omarchy/hooks/post-update.sample b/config/omarchy/hooks/post-update.sample index 486352e5..f740d5bb 100644 --- a/config/omarchy/hooks/post-update.sample +++ b/config/omarchy/hooks/post-update.sample @@ -4,4 +4,4 @@ # To put it into use, remove .sample from the name. # Example: Show notification after the system has been updated. -# notify-send "Update Performed" "Your system is now up to date" +# notify-send -u low "Update Performed" "Your system is now up to date" diff --git a/config/omarchy/hooks/theme-set.sample b/config/omarchy/hooks/theme-set.sample index b2a5fe1d..2d13287f 100644 --- a/config/omarchy/hooks/theme-set.sample +++ b/config/omarchy/hooks/theme-set.sample @@ -4,4 +4,4 @@ # To put it into use, remove .sample from the name. # Example: Show the name of the theme that was just set. -# notify-send "New theme" "Your new theme is $1" +# notify-send -u low "New theme" "Your new theme is $1" diff --git a/default/hypr/bindings/utilities.conf b/default/hypr/bindings/utilities.conf index 9e0204b0..0f350b0d 100644 --- a/default/hypr/bindings/utilities.conf +++ b/default/hypr/bindings/utilities.conf @@ -42,8 +42,8 @@ bindd = SUPER, PRINT, Color picker, exec, pkill hyprpicker || hyprpicker -a bindd = SUPER CTRL, S, Share, exec, omarchy-menu share # Waybar-less information -bindd = SUPER CTRL ALT, T, Show time, exec, notify-send " $(date +"%A %H:%M — %d %B W%V %Y")" -bindd = SUPER CTRL ALT, B, Show battery remaining, exec, notify-send "$(omarchy-battery-status)" +bindd = SUPER CTRL ALT, T, Show time, exec, notify-send -u low " $(date +"%A %H:%M — %d %B W%V %Y")" +bindd = SUPER CTRL ALT, B, Show battery remaining, exec, notify-send -u low "$(omarchy-battery-status)" # Control panels bindd = SUPER CTRL, A, Audio controls, exec, omarchy-launch-audio