keyboard backlight

This commit is contained in:
Reid 2024-12-11 23:01:48 -08:00
parent 62eebe2012
commit ea7608e793
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD

View file

@ -32,10 +32,15 @@ in {
listener = [ listener = [
{ {
timeout = 60 * 1; timeout = 60;
on-timeout = "${lib.getExe pkgs.brightnessctl} -c backlight -s set 20"; # dim screen, save brightness state on-timeout = "${lib.getExe pkgs.brightnessctl} -c backlight -s set 20"; # dim screen, save brightness state
on-resume = "${lib.getExe pkgs.brightnessctl} -c backlight -r"; # restore previous screen brightness state on-resume = "${lib.getExe pkgs.brightnessctl} -c backlight -r"; # restore previous screen brightness state
} }
{
timeout = 60;
on-timeout = "${lib.getExe pkgs.brightnessctl} -d '*:kbd_backlight' -s set 0"; # turn off keyboard backlight, save state
on-resume = "${lib.getExe pkgs.brightnessctl} -d '*:kbd_backlight' -r"; # restore previous keyboard backlight state
}
{ {
timeout = 90; # 1.5 min timeout = 90; # 1.5 min
on-timeout = "${hyprctl} dispatch dpms off"; # turn off screen on-timeout = "${hyprctl} dispatch dpms off"; # turn off screen