From 0d98d7e2afca9b69fc7ca96ee000089b0f5d695a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 17 May 2026 22:09:31 +0200 Subject: [PATCH] Don't show notifications for things that have other visual indicators Like the bar indicators --- bin/omarchy-toggle-idle | 2 -- bin/omarchy-toggle-notification-silencing | 10 ++-------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/bin/omarchy-toggle-idle b/bin/omarchy-toggle-idle index 4b02b919..f82fee4c 100755 --- a/bin/omarchy-toggle-idle +++ b/bin/omarchy-toggle-idle @@ -4,10 +4,8 @@ if pgrep -x hypridle >/dev/null; then pkill -x hypridle - omarchy-notification-send -g 󱫖 "Stop locking computer when idle" else uwsm-app -- hypridle >/dev/null 2>&1 & - omarchy-notification-send -g 󱫖 "Now locking computer when idle" fi omarchy-shell-ipc --if-running bar refreshIndicators >/dev/null 2>&1 || true diff --git a/bin/omarchy-toggle-notification-silencing b/bin/omarchy-toggle-notification-silencing index 7257969f..965af896 100755 --- a/bin/omarchy-toggle-notification-silencing +++ b/bin/omarchy-toggle-notification-silencing @@ -2,11 +2,5 @@ # omarchy:summary=Toggle notification do-not-disturb mode -state=$(omarchy-shell-ipc notifications toggleDnd 2>/dev/null || echo "") - -case $state in -on) omarchy-notification-send "Silenced notifications" -g 󰂛 -e ;; -off) omarchy-notification-send "Enabled notifications" -g 󰂚 -e ;; -esac - -omarchy-shell-ipc --if-running bar refreshIndicators >/dev/null 2>&1 || true +state=$(omarchy-shell notifications toggleDnd 2>/dev/null || echo "") +omarchy-shell --if-running bar refreshIndicators >/dev/null 2>&1 || true