Krolyxon
Commit a215858

Branches

Refs →

auroraa215858

hypridle: use lua dpms dispatcher

Author
krolyxon
Date
2026-10-19 21:43 +0530
Parent
b32fedf
Commit
a2158585f6e219f81d868e1417121e1b2d048e7d

+3 −3

1 file changed

  1. M .config/hypr/hypridle.conf +3 −3
M .config/hypr/hypridle.conf View
@@ -1,7 +1,7 @@
11 general {
22 lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
33 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.
55 }
66
77 listener {
@@ -17,8 +17,8 @@ listener {
1717
1818 listener {
1919 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.
2222 }
2323
2424 # listener {