general { lock_cmd=pidof hyprlock || hyprlock before_sleep_cmd=loginctl lock-session after_sleep_cmd=hyprctl dispatch 'hl.dsp.dpms({ action = "on" })' } # Lock after 10 minutes idle (respects inhibitors, e.g. fullscreen video). listener { timeout=600 on-timeout=loginctl lock-session } listener { timeout=1 on-resume=hyprctl dispatch 'hl.dsp.dpms({ action = "on" })' on-timeout=true ignore_inhibit=true } listener { timeout=300 on-timeout=hyprctl dispatch 'hl.dsp.dpms({ action = "off" })' ignore_inhibit=true }