Stay Awake: fix state detection, rename, notify on toggle

This commit is contained in:
Ryan Hughes
2026-05-18 02:40:19 -04:00
parent 8272c6d881
commit 2a6749dc6c
3 changed files with 7 additions and 6 deletions
+3 -1
View File
@@ -1,11 +1,13 @@
#!/bin/bash
# omarchy:summary=Toggle hypridle idle locking
# omarchy:summary=Toggle hypridle so the system either idles normally or stays awake
if pgrep -x hypridle >/dev/null; then
pkill -x hypridle
omarchy-notification-send -g "󰛊" "Staying awake" "Idle behavior disabled"
else
uwsm-app -- hypridle >/dev/null 2>&1 &
omarchy-notification-send -g "󰾪" "Idle behavior on" "System can now sleep / lock on idle"
fi
omarchy-shell-ipc --if-running bar refreshIndicators >/dev/null 2>&1 || true