Switch from brillo to brightnessctl
This commit is contained in:
parent
e48a215886
commit
9f5b217e88
2 changed files with 5 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ in
|
|||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
blueman
|
||||
brillo
|
||||
brightnessctl
|
||||
gamescope
|
||||
grimblast
|
||||
networkmanagerapplet
|
||||
|
|
@ -59,8 +59,8 @@ in
|
|||
listener = [
|
||||
{
|
||||
timeout = 30;
|
||||
on-timeout = "${pkgs.brillo}/bin/brillo -e -O; ${pkgs.brillo}/bin/brillo -e -S 10 -u 1000000"; # lower screen backlight
|
||||
on-resume = "${pkgs.brillo}/bin/brillo -e -I"; # restore screen backlight
|
||||
on-timeout = "brightnessctl -s -d intel_backlight s 10; brightnessctl -s -d tpacpi::kbd_backlight s 0"; # lower screen backlight
|
||||
on-resume = "brightnessctl -r -d intel_backlight; brightnessctl -r -d tpacpi::kbd_backlight"; # restore screen backlight
|
||||
}
|
||||
{
|
||||
timeout = 60;
|
||||
|
|
@ -291,8 +291,8 @@ in
|
|||
];
|
||||
|
||||
bindel = [
|
||||
", XF86MonBrightnessUp, exec, brillo -A 10; brillo -O"
|
||||
", XF86MonBrightnessDown, exec, brillo -U 10; brillo -O"
|
||||
", XF86MonBrightnessUp, exec, brightnessctl -q s 10%+"
|
||||
", XF86MonBrightnessDown, exec, brightnessctl -q s 10%-"
|
||||
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+"
|
||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue