fix: hypridle Lua-dispatch compatibility for lock and DPMS (#3393)

This commit is contained in:
Minh
2026-05-24 22:34:45 +02:00
committed by GitHub
+3 -3
View File
@@ -5,7 +5,7 @@ $suspend_cmd = systemctl suspend || loginctl suspend
general { general {
lock_cmd = $lock_cmd lock_cmd = $lock_cmd
before_sleep_cmd = loginctl lock-session before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch global quickshell:lockFocus after_sleep_cmd = hyprctl dispatch 'hl.dsp.global("quickshell:lockFocus")'
inhibit_sleep = 3 inhibit_sleep = 3
} }
@@ -16,8 +16,8 @@ listener {
listener { listener {
timeout = 600 # 10mins timeout = 600 # 10mins
on-timeout = hyprctl dispatch dpms off on-timeout = hyprctl dispatch 'hl.dsp.dpms(false)'
on-resume = hyprctl dispatch dpms on on-resume = hyprctl dispatch 'hl.dsp.dpms(true)'
} }
listener { listener {