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

This commit is contained in:
David Heinemeier Hansson committed 2026-04-17 15:45:44 +02:00
1 parent 71bbcc8adc
commit db52ba346c
6 files changed
+18 -10

No files matched your search

+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