From c38fcfa997f637f4aef178ca4a48746919eba092 Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Tue, 2 Jun 2026 12:51:46 +0200 Subject: [PATCH] hypr: fix hypridle hyprlock flag and dpms dispatch for 0.55 Drop the invalid -f flag from lock_cmd (a swaylock holdover; hyprlock v0.9.5 has no fork flag and the pgrep guard already prevents duplicates), and migrate all dpms calls to the Lua dispatch form required since Hyprland 0.55: hyprctl dispatch 'hl.dsp.dpms({ action = ... })'. --- dot_config/hypr/hypridle.conf.tmpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dot_config/hypr/hypridle.conf.tmpl b/dot_config/hypr/hypridle.conf.tmpl index fa40d58..a775a59 100644 --- a/dot_config/hypr/hypridle.conf.tmpl +++ b/dot_config/hypr/hypridle.conf.tmpl @@ -2,9 +2,9 @@ ### based on the example config from hyprland.org general { - lock_cmd = pgrep -x hyprlock >/dev/null || hyprlock -f # avoid starting multiple swaylock instances. + lock_cmd = pgrep -x hyprlock >/dev/null || hyprlock # avoid starting multiple hyprlock instances. before_sleep_cmd = loginctl lock-session # lock before suspend. - after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. + after_sleep_cmd = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })' # to avoid having to press a key twice to turn on the display. ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) ignore_systemd_inhibit = false # whether to ignore systemd-inhibit --what=idle inhibitors } @@ -13,8 +13,8 @@ general { # Laptop: aggressive timeouts to save battery. listener { timeout = 180 # 3min - on-timeout = hyprctl dispatch dpms off # screen off - on-resume = hyprctl dispatch dpms on + on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })' # screen off + on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })' } listener { @@ -30,8 +30,8 @@ listener { # Desktop: relaxed timeouts. listener { timeout = 300 # 5min - on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed - on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. + on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })' # screen off when timeout has passed + on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })' # screen on when activity is detected after timeout has fired. } listener {