Switch from brillo to brightnessctl

This commit is contained in:
Filippo Berto 2025-03-01 20:29:35 +01:00
parent e48a215886
commit 9f5b217e88
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
2 changed files with 5 additions and 6 deletions

View file

@ -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%-"
];

View file

@ -12,7 +12,6 @@
};
hardware = {
brillo.enable = true;
graphics.enable = true;
nvidia.modesetting.enable = builtins.elem "nvidia" config.services.xserver.videoDrivers;
};