blob: affaf6456f61eb2ebf322b9fa079d7d16f3f3d26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# sample hypridle.conf
# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hypridle
general {
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
# Dim after 5 minutes
listener {
timeout = 300
on-timeout = brightnessctl -s set 10
on-resume = brightnessctl -r # monitor backlight restore.
}
listener {
timeout = 300
on-timeout = brightnessctl -sd kbd_backlight set 0 # turn off keyboard backlight.
on-resume = brightnessctl -rd kbd_backlight # turn on keyboard backlight.
}
# screenoff after half hour
listener {
timeout = 1800
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
# suspend after an hour
listener {
timeout = 3600
on-timeout = loginctl suspend
}
|