feat(hypr): implement display and keyboard backlight dimming

This commit is contained in:
2026-03-06 19:35:59 +01:00
parent f659be1b00
commit b6fa9dc31e
3 changed files with 84 additions and 2 deletions

View File

@@ -6,10 +6,22 @@ general {
}
listener {
timeout = 300 # 5min
on-timeout = loginctl lock-session # lock screen when timeout has passed
timeout = 290
on-timeout = ~/.config/hypr/scripts/dim-display.sh dim
on-resume = ~/.config/hypr/scripts/dim-display.sh restore
}
listener {
timeout = 300
on-timeout = loginctl lock-session
}
listener {
timeout = 300
on-timeout = ~/.config/hypr/scripts/dim-keyboard.sh dim
on-resume = ~/.config/hypr/scripts/dim-keyboard.sh restore
}
listener {
timeout = 300 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed