idle: turn off screen before sleeping a bit

This commit is contained in:
end-4
2024-02-25 13:17:53 +07:00
parent 477b22636f
commit 4b69574774
+9 -7
View File
@@ -3,19 +3,21 @@ $suspend_cmd = systemctl suspend
general { general {
lock_cmd = $lock_cmd lock_cmd = $lock_cmd
# unlock_cmd
before_sleep_cmd = $lock_cmd before_sleep_cmd = $lock_cmd
# after_sleep_cmd
} }
listener { listener {
timeout = 300 timeout = 180 # 3mins
on-timeout = $lock_cmd on-timeout = $lock_cmd
# on-resume
} }
listener { listener {
timeout = 450 timeout = 240 # 4mins
on-timeout = $suspend_cmd on-timeout = hyprctl dispatch dpms off
# on-resume on-resume = hyprctl dispatch dpms on
}
listener {
timeout = 540 # 9mins
on-timeout = $suspend_cmd
} }