auroraa215858
hypridle: use lua dpms dispatcher
+3 −3
1 file changed
- M .config/hypr/hypridle.conf +3 −3
| @@ -1,7 +1,7 @@ | |||
| 1 | 1 | general { | |
| 2 | 2 | lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. | |
| 3 | 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. | |
| 4 | + | after_sleep_cmd = hyprctl dispatch 'hl.dsp.dpms({action="on"})' # to avoid having to press a key twice to turn on the display. | |
| 5 | 5 | } | |
| 6 | 6 | ||
| 7 | 7 | listener { | |
| @@ -17,8 +17,8 @@ listener { | |||
| 17 | 17 | ||
| 18 | 18 | listener { | |
| 19 | 19 | timeout = 330 # 5.5min | |
| 20 | − | on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed | |
| 21 | − | on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected after timeout has fired. | |
| 20 | + | on-timeout = hyprctl dispatch 'hl.dsp.dpms({action="off"})' # screen off when timeout has passed | |
| 21 | + | on-resume = hyprctl dispatch 'hl.dsp.dpms({action="on"})' && brightnessctl -r # screen on when activity is detected after timeout has fired. | |
| 22 | 22 | } | |
| 23 | 23 | ||
| 24 | 24 | # listener { | |