keyboard backlight
This commit is contained in:
parent
62eebe2012
commit
ea7608e793
1 changed files with 6 additions and 1 deletions
|
@ -32,10 +32,15 @@ in {
|
|||
|
||||
listener = [
|
||||
{
|
||||
timeout = 60 * 1;
|
||||
timeout = 60;
|
||||
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
|
||||
}
|
||||
{
|
||||
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
|
||||
on-timeout = "${hyprctl} dispatch dpms off"; # turn off screen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue