Hyprland: Add laptop volume & brightness keybinds

This commit is contained in:
GHOSCHT 2024-12-16 16:23:51 +01:00
parent 8c31eb51d0
commit 291b01a996
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 17 additions and 8 deletions

View file

@ -1,13 +1,9 @@
{ { pkgs, ... }: {
pkgs,
inputs,
outputs,
...
}: let
in {
imports = [ imports = [
./global ./global
./features/desktop/awesome ./features/desktop/awesome
./features/desktop/common/alacritty.nix
./features/desktop/hyprland
./features/desktop/gnome ./features/desktop/gnome
./features/coding ./features/coding
]; ];
@ -22,4 +18,16 @@ in {
]; ];
}; };
}; };
wayland.windowManager.hyprland = {
settings = {
bind = [
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set +10%"
", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 10%-"
];
};
};
} }

View file

@ -25,6 +25,7 @@
../common/global ../common/global
../common/optional/desktop/awesome.nix ../common/optional/desktop/awesome.nix
../common/optional/desktop/hyprland.nix
../common/optional/desktop/gnome.nix ../common/optional/desktop/gnome.nix
../common/optional/systemd-boot.nix ../common/optional/systemd-boot.nix