Ensure screensaver doesn't start while the computer is locked

This commit is contained in:
David Heinemeier Hansson
2025-08-03 10:18:15 +02:00
parent 008ede7bbd
commit 3a5ef9d841
2 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,7 @@ general {
listener { listener {
timeout = 60 # 1min timeout = 60 # 1min
on-timeout = omarchy-launch-screensaver # start screensaver on-timeout = pidof hyprlock || omarchy-launch-screensaver # start screensaver (if we haven't locked already)
} }
listener { listener {

4
migrations/1754208139.sh Normal file
View File

@ -0,0 +1,4 @@
echo "Ensure screensaver doesn't start while the computer is locked"
if ! grep -q "pidof hyprlock || omarchy-launch-screensaver" ~/.config/hypr/hypridle.conf; then
omarchy-refresh-hypridle
fi