aboutsummaryrefslogtreecommitdiff
path: root/hypr/hypridle.conf
blob: 9f6cc4b37ca42b997c2b4c0dcf1675f089c19016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
general {
    lock_cmd = pidof hyprlock || hyprlock
    before_sleep_cmd = loginctl lock-session
    after_sleep_cmd = hyprctl dispatch 'hl.dsp.dpms({action = "on"})'
}

listener {
    timeout = 600                      # 10 min - lock the session
    on-timeout = loginctl lock-session
}

listener {
    timeout = 720                      # 12 min - blank the display
    on-timeout = hyprctl dispatch 'hl.dsp.dpms({action = "off"})'
    on-resume = hyprctl dispatch 'hl.dsp.dpms({action = "on"})'
}