Hyprland: Add laptop volume & brightness keybinds
This commit is contained in:
parent
8c31eb51d0
commit
291b01a996
2 changed files with 17 additions and 8 deletions
|
@ -1,18 +1,14 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
outputs,
|
||||
...
|
||||
}: let
|
||||
in {
|
||||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
./global
|
||||
./features/desktop/awesome
|
||||
./features/desktop/common/alacritty.nix
|
||||
./features/desktop/hyprland
|
||||
./features/desktop/gnome
|
||||
./features/coding
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [nextcloud-client];
|
||||
home.packages = with pkgs; [ nextcloud-client ];
|
||||
|
||||
nixpkgs = {
|
||||
config = {
|
||||
|
@ -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%-"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
../common/global
|
||||
../common/optional/desktop/awesome.nix
|
||||
../common/optional/desktop/hyprland.nix
|
||||
../common/optional/desktop/gnome.nix
|
||||
|
||||
../common/optional/systemd-boot.nix
|
||||
|
|
Loading…
Reference in a new issue