Don't show notifications for things that have other visual indicators
Like the bar indicators
This commit is contained in:
@@ -4,10 +4,8 @@
|
|||||||
|
|
||||||
if pgrep -x hypridle >/dev/null; then
|
if pgrep -x hypridle >/dev/null; then
|
||||||
pkill -x hypridle
|
pkill -x hypridle
|
||||||
omarchy-notification-send -g "Stop locking computer when idle"
|
|
||||||
else
|
else
|
||||||
uwsm-app -- hypridle >/dev/null 2>&1 &
|
uwsm-app -- hypridle >/dev/null 2>&1 &
|
||||||
omarchy-notification-send -g "Now locking computer when idle"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
omarchy-shell-ipc --if-running bar refreshIndicators >/dev/null 2>&1 || true
|
omarchy-shell-ipc --if-running bar refreshIndicators >/dev/null 2>&1 || true
|
||||||
|
|||||||
@@ -2,11 +2,5 @@
|
|||||||
|
|
||||||
# omarchy:summary=Toggle notification do-not-disturb mode
|
# omarchy:summary=Toggle notification do-not-disturb mode
|
||||||
|
|
||||||
state=$(omarchy-shell-ipc notifications toggleDnd 2>/dev/null || echo "")
|
state=$(omarchy-shell notifications toggleDnd 2>/dev/null || echo "")
|
||||||
|
omarchy-shell --if-running bar refreshIndicators >/dev/null 2>&1 || true
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user