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 {