Merge branch 'upgrade-26.05'
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
{ inputs, ... }: {
|
||||
flake.modules.nixos.backlight = { pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
brightnessctl
|
||||
];
|
||||
|
||||
home-manager.sharedModules = [
|
||||
inputs.self.modules.homeManager.backlight
|
||||
];
|
||||
};
|
||||
|
||||
flake.modules.homeManager.backlight = {
|
||||
wayland.windowManager.hyprland.settings.bind = [
|
||||
", code:232, exec, brightnessctl set 5%-"
|
||||
", code:233, exec, brightnessctl set +5%"
|
||||
];
|
||||
};
|
||||
flake.modules.homeManager.backlight = { pkgs, ... }:
|
||||
let
|
||||
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
||||
in
|
||||
{
|
||||
wayland.windowManager.hyprland.extraConfig = ''
|
||||
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("${brightnessctl} -e4 -n2 set 5%+"), { locked = true, repeating = true })
|
||||
hl.bind("XF86MonBrightnessDown",hl.dsp.exec_cmd("${brightnessctl} -e4 -n2 set 5%-"), { locked = true, repeating = true })
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user