Prevent flicker on waking from sleep

This commit is contained in:
David Heinemeier Hansson
2026-05-06 12:52:18 +02:00
parent 7330c0f9a5
commit 4e4a688fdf
2 changed files with 10 additions and 8 deletions
+8 -6
View File
@@ -23,9 +23,11 @@ fi
# Avoid running screensaver when locked
pkill -f org.omarchy.screensaver
(
sleep 3
pidof hyprlock >/dev/null || exit 0
omarchy-brightness-keyboard off
omarchy-brightness-display off
) &
if [[ ${OMARCHY_LOCK_ONLY:-false} != "true" ]]; then
(
sleep 3
pidof hyprlock >/dev/null || exit 0
omarchy-brightness-keyboard off
omarchy-brightness-display off
) &
fi