Repository navigation
Turn off display after N seconds #964
|
Betterlockscreen had a functionality where it would turn off the display after N seconds have passed without input. |
Replies: 1 comment 3 replies
|
From the
Accordingly, you can add the following to your # hypridle.conf
listener {
timeout = 30 # N seconds
# Lua
on-timeout = hyprctl dispatch 'hl.dsp.dpms(false)'
on-resume = hyprctl dispatch 'hl.dsp.dpms(true)'
# hyprlang
# on-timeout = hyprctl dispatch dpms off
# on-resume = hyprctl dispatch dpms on
condition_cmd = pgrep --euid="$USER" hyprlock # This exits with code 1 if hyprlock isn't running
condition_retry = 1 # Retry condition_cmd every second
} |
From the
hypridledocumentation:Accordingly, you can add the following to your
hypridle.confto automatically turn off all displays after 30 seconds of idling on the lock screen: