turn off keyboard and screen when idle for 2.5 min

This commit is contained in:
Alexander Bell 2025-05-18 23:21:51 +02:00
parent 627a799932
commit 16cf645448
2 changed files with 8 additions and 9 deletions

View File

@ -6,15 +6,15 @@ general {
listener { listener {
timeout = 150 # 2.5min. timeout = 150 # 2.5min.
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. on-timeout = brightnessctl -s set 0 # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restore. on-resume = brightnessctl -r # monitor backlight restore.
} }
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight. # turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
listener { listener {
timeout = 150 # 2.5min. timeout = 150 # 2.5min.
on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight. on-timeout = brightnessctl -sd chromeos::kbd_backlight set 0 # turn off keyboard backlight.
on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight. on-resume = brightnessctl -rd chromeos::kbd_backlight # turn on keyboard backlight.
} }
#listener { #listener {
@ -22,11 +22,11 @@ listener {
# on-timeout = loginctl lock-session # lock screen when timeout has passed # on-timeout = loginctl lock-session # lock screen when timeout has passed
#} #}
listener { #listener {
timeout = 330 # 5.5min # timeout = 330 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed # 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 after timeout has fired. # on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected after timeout has fired.
} #}
#listener { #listener {
# timeout = 1800 # 30min # timeout = 1800 # 30min

View File

@ -52,7 +52,6 @@ exec-once = waybar
exec-once = hyprpaper & hypridle & $lockscreen exec-once = hyprpaper & hypridle & $lockscreen
exec-once = dunst exec-once = dunst
exec-once = [workspace 1 silent] $browser exec-once = [workspace 1 silent] $browser
exec-once = [workspace 2 silent] $terminal
exec-once = [workspace 5 silent] $music exec-once = [workspace 5 silent] $music
############################## ##############################