Don't show notifications for things that have other visual indicators

Like the bar indicators
This commit is contained in:
David Heinemeier Hansson
2026-05-17 22:09:31 +02:00
parent 671dd4698c
commit 0d98d7e2af
2 changed files with 2 additions and 10 deletions
-2
View File
@@ -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
+2 -8
View File
@@ -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