Better system idle (#5619)
* Better system idle * Just use refresh Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
parent
bc4e26ecf4
commit
dd46e965d8
@@ -5,24 +5,15 @@ general {
|
||||
inhibit_sleep = 3 # wait until screen is locked
|
||||
}
|
||||
|
||||
# Start screensaver after 2.5 minutes
|
||||
listener {
|
||||
timeout = 150 # 2.5min
|
||||
on-timeout = pidof hyprlock || omarchy-launch-screensaver # start screensaver (if we haven't locked already)
|
||||
timeout = 150
|
||||
on-timeout = pidof hyprlock || omarchy-launch-screensaver
|
||||
}
|
||||
|
||||
# Idle system after 5 minutes
|
||||
listener {
|
||||
timeout = 151 # 5min
|
||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 330 # 5.5min
|
||||
on-timeout = brightnessctl -sd '*::kbd_backlight' set 0 # save state and turn off keyboard backlight
|
||||
on-resume = brightnessctl -rd '*::kbd_backlight' # restore keyboard backlight
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 330 # 5.5min
|
||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected
|
||||
timeout = 152
|
||||
on-timeout = omarchy-system-idle
|
||||
on-resume = omarchy-system-idle-resume
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user