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 {
|
home.packages = builtins.attrValues {
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
blueman
|
blueman
|
||||||
brillo
|
brightnessctl
|
||||||
gamescope
|
gamescope
|
||||||
grimblast
|
grimblast
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
|
|
@ -59,8 +59,8 @@ in
|
||||||
listener = [
|
listener = [
|
||||||
{
|
{
|
||||||
timeout = 30;
|
timeout = 30;
|
||||||
on-timeout = "${pkgs.brillo}/bin/brillo -e -O; ${pkgs.brillo}/bin/brillo -e -S 10 -u 1000000"; # lower screen backlight
|
on-timeout = "brightnessctl -s -d intel_backlight s 10; brightnessctl -s -d tpacpi::kbd_backlight s 0"; # lower screen backlight
|
||||||
on-resume = "${pkgs.brillo}/bin/brillo -e -I"; # restore screen backlight
|
on-resume = "brightnessctl -r -d intel_backlight; brightnessctl -r -d tpacpi::kbd_backlight"; # restore screen backlight
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = 60;
|
timeout = 60;
|
||||||
|
|
@ -291,8 +291,8 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
bindel = [
|
bindel = [
|
||||||
", XF86MonBrightnessUp, exec, brillo -A 10; brillo -O"
|
", XF86MonBrightnessUp, exec, brightnessctl -q s 10%+"
|
||||||
", XF86MonBrightnessDown, exec, brillo -U 10; brillo -O"
|
", XF86MonBrightnessDown, exec, brightnessctl -q s 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%-"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
brillo.enable = true;
|
|
||||||
graphics.enable = true;
|
graphics.enable = true;
|
||||||
nvidia.modesetting.enable = builtins.elem "nvidia" config.services.xserver.videoDrivers;
|
nvidia.modesetting.enable = builtins.elem "nvidia" config.services.xserver.videoDrivers;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue