pinwheel: Add screen brightness control

This commit is contained in:
Alexander Heldt
2023-08-20 20:40:17 +02:00
parent 70cc41ff66
commit 9615a0dbe0
2 changed files with 17 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
./modules/ssh
./modules/syncthing
./modules/firefox
./modules/light
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];

View File

@@ -0,0 +1,16 @@
{ home-manager, pkgs, ... }:
{
users.users.alex.extraGroups = [ "video" ];
programs.light.enable = true;
home-manager.users.alex = {
wayland.windowManager.hyprland = {
settings = {
bind = [
", XF86MonBrightnessUp, exec, ${pkgs.light}/bin/light -A 5"
", XF86MonBrightnessDown, exec, ${pkgs.light}/bin/light -U 5"
];
};
};
};
}