hypridle.conf.tmpl
705 bytes
1# vim: ft=hyprlang
2
3listener {
4 timeout = 120
5 on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'
6 on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })'
7}
8{{- if index (index .hyprland "hypridle" | default dict) "auto_suspend" | default false }}
9
10general {
11 lock_cmd = pidof hyprlock || hyprlock
12 before_sleep_cmd = loginctl lock-session
13 after_sleep_cmd = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })'
14}
15
16listener {
17 timeout = 60
18 on-timeout = light -O && light -S 0
19 on-resume = light -I
20}
21
22listener {
23 timeout = 300
24 on-timeout = loginctl lock-session
25}
26
27listener {
28 timeout = 320
29 on-timeout = systemctl suspend
30}
31{{- end }}