pinwheel: Add screen brightness control
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
./modules/ssh
|
||||
./modules/syncthing
|
||||
./modules/firefox
|
||||
./modules/light
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
16
hosts/pinwheel/modules/light/default.nix
Normal file
16
hosts/pinwheel/modules/light/default.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user