Fix timeout times in hypridle

For some reason when there was too much time between dim
and lock it would always wake up and stay awake for ever.
This commit is contained in:
Jeena 2025-09-13 21:51:29 +09:00
parent 455943ef3d
commit a17aa97d68

View file

@ -11,23 +11,23 @@ general {
after_sleep_cmd = hyprctl dispatch dpms on after_sleep_cmd = hyprctl dispatch dpms on
} }
# Step 1: Dim monitor at 2.5 min idle (warning that it will lock soon) # Step 1: Dim monitor at 115 sec idle (warning that it will lock soon)
listener { listener {
timeout = 150 timeout = 115
# Only dims the screen, does not lock yet # Only dims the screen, does not lock yet
# This shows you that lock will happen soon # This shows you that lock will happen soon
on-timeout = dim on-timeout = dim
} }
# Step 2: Lock screen at 5 min idle # Step 2: Lock screen at 2 min idle
listener { listener {
timeout = 300 timeout = 120
on-timeout = ~/.config/hypr/scripts/lock.sh on-timeout = ~/.config/hypr/scripts/lock.sh
} }
# Step 3: Turn screen off at 5.5 min idle # Step 3: Turn screen off at 5 min idle
listener { listener {
timeout = 330 timeout = 300
on-timeout = hyprctl dispatch dpms off && ddcutil setvcp 10 0 on-timeout = hyprctl dispatch dpms off && ddcutil setvcp 10 0
# Explanation: # Explanation: