Add brightness control

inky
Elnu 2 years ago
parent ac4d40d628
commit caff89ca3b

@ -1,5 +1,6 @@
{ pkgs, ... }: {
imports = [
./polybar.nix
./i3.nix
];
}

@ -0,0 +1,12 @@
{ pkgs, lib, ... }:
{
home.packages = with pkgs; [
brightnessctl
];
xsession.windowManager.i3.config.keybindings = lib.mkOptionDefault {
"XF86MonBrightnessUp" = "exec --no-startup-id brightnessctl set +5%";
"XF86MonBrightnessDown" = "exec --no-startup-id brightnessctl set 5%-";
};
}
Loading…
Cancel
Save