dotfiles/config/niri/hypridle.conf (view raw)
| 1 | general { |
| 2 | lock_cmd = hyprlock |
| 3 | } |
| 4 | |
| 5 | listener { # screen lock |
| 6 | timeout = 210 |
| 7 | on-timeout = loginctl lock-session |
| 8 | } |
| 9 | |
| 10 | listener { # turn off screens |
| 11 | timeout = 260 |
| 12 | on-timeout = niri msg action power-off-monitors |
| 13 | on-resume = niri msg action power-on-monitors |
| 14 | } |
| 15 | |
| 16 | listener { # suspend |
| 17 | timeout = 500 |
| 18 | on-timeout = systemctl suspend |
| 19 | } |