mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-05 20:28:25 +02:00
14 lines
458 B
Bash
Executable File
14 lines
458 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 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
|