Move from hypridle to QS

This commit is contained in:
David Heinemeier Hansson
2026-05-19 12:02:28 +02:00
parent 48dacca6ea
commit 0f5044167c
25 changed files with 326 additions and 99 deletions
-6
View File
@@ -1,6 +0,0 @@
#!/bin/bash
# omarchy:summary=Overwrite the user config for hypridle with the Omarchy default and restart the service.
omarchy-refresh-config hypr/hypridle.conf
omarchy-restart-hypridle
-5
View File
@@ -1,5 +0,0 @@
#!/bin/bash
# omarchy:summary=Restart the hypridle service (used for idle detection and auto-lock).
omarchy-restart-app hypridle
+16 -7
View File
@@ -1,13 +1,22 @@
#!/bin/bash
# omarchy:summary=Toggle hypridle so the system either idles normally or stays awake
# omarchy:summary=Toggle idle behavior 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"
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