dot
vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks
| 1 | general { |
| 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). |
| 8 | listener { |
| 9 | timeout=600 |
| 10 | on-timeout=loginctl lock-session |
| 11 | } |
| 12 | |
| 13 | listener { |
| 14 | timeout=1 |
| 15 | on-resume=hyprctl dispatch 'hl.dsp.dpms({ action = "on" })' |
| 16 | on-timeout=true |
| 17 | ignore_inhibit=true |
| 18 | } |
| 19 | |
| 20 | listener { |
| 21 | timeout=300 |
| 22 | on-timeout=hyprctl dispatch 'hl.dsp.dpms({ action = "off" })' |
| 23 | ignore_inhibit=true |
| 24 | } |