Introduce omarchy-shell -q for fire and forget

This commit is contained in:
David Heinemeier Hansson
2026-05-20 14:24:19 +02:00
parent ed3320cb8d
commit c87bfb8da8
8 changed files with 34 additions and 31 deletions
+2 -18
View File
@@ -2,21 +2,5 @@
# omarchy:summary=Toggle idle behavior so the system either idles normally or stays awake
if ! state=$(omarchy-shell idle toggle); then
exit 1
fi
case $state in
enabled)
omarchy-notification-send -g "󰾪" "Idle behavior on" "System can now lock on idle"
;;
disabled)
omarchy-notification-send -g "󰅶" "Staying awake" "Idle behavior disabled"
;;
*)
echo "Unexpected idle state: $state" >&2
exit 1
;;
esac
omarchy-shell bar refreshIndicators >/dev/null 2>&1 || true
omarchy-shell idle toggle
omarchy-shell -q bar refreshIndicators