Better screen brightness management

This commit is contained in:
Filippo Berto 2024-11-22 13:39:27 +01:00
parent 394312a184
commit 767f80a3d7
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
2 changed files with 4 additions and 4 deletions

View file

@ -248,8 +248,8 @@ in
]; ];
bindel = [ bindel = [
", XF86MonBrightnessUp, exec, brillo -A 10" ", XF86MonBrightnessUp, exec, brillo -O -A 10"
", XF86MonBrightnessDown, exec, brillo -U 10" ", XF86MonBrightnessDown, exec, brillo -O -U 10"
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+" ", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-" ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"
]; ];

View file

@ -17,8 +17,8 @@
timeouts = [ timeouts = [
{ {
timeout = 60; timeout = 60;
command = "${pkgs.brillo}/bin/brillo -e -S 10 -u 1000000"; command = "${pkgs.brillo}/bin/brillo -e -O; ${pkgs.brillo}/bin/brillo -e -S 10 -u 1000000";
resumeCommand = "${pkgs.brillo}/bin/brillo -e -S 100"; resumeCommand = "${pkgs.brillo}/bin/brillo -e -I";
} }
{ {
timeout = 120; timeout = 120;