Extract omarchy-toggle-enabled and use this with the waybar to persist

This commit is contained in:
David Heinemeier Hansson
2026-04-17 15:45:44 +02:00
parent 71bbcc8adc
commit db52ba346c
6 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ fi
pgrep -f org.omarchy.screensaver && exit 0
# Allow screensaver to be turned off but also force started
if [[ -f ~/.local/state/omarchy/toggles/screensaver-off ]] && [[ $1 != "force" ]]; then
if omarchy-toggle-enabled screensaver-off && [[ $1 != "force" ]]; then
exit 1
fi