dotfiles-x11.confighyprhypridle.conf
| 1 | general { |
| 2 | lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. |
| 3 | before_sleep_cmd = loginctl lock-session # lock before suspend. |
| 4 | after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. |
| 5 | } |
| 6 | |
| 7 | listener { |
| 8 | timeout = 330 # 5.5min |
| 9 | on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed |
| 10 | on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. |
| 11 | } |