dot

vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks

24 lines539 bytes
1general {
2 lock_cmd=pidof hyprlock || hyprlock
3 before_sleep_cmd=loginctl lock-session
4 after_sleep_cmd=hyprctl dispatch 'hl.dsp.dpms({ action = "on" })'
5}
6
7# Lock after 10 minutes idle (respects inhibitors, e.g. fullscreen video).
8listener {
9 timeout=600
10 on-timeout=loginctl lock-session
11}
12
13listener {
14 timeout=1
15 on-resume=hyprctl dispatch 'hl.dsp.dpms({ action = "on" })'
16 on-timeout=true
17 ignore_inhibit=true
18}
19
20listener {
21 timeout=300
22 on-timeout=hyprctl dispatch 'hl.dsp.dpms({ action = "off" })'
23 ignore_inhibit=true
24}