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 = ... })'.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user