24 lines
855 B
Nix
24 lines
855 B
Nix
{ user ? throw "user argument is required" }: { pkgs, ... }:
|
|
|
|
{
|
|
home-manager.users.${user.name} = {
|
|
wayland.windowManager.hyprland.settings =
|
|
let
|
|
wpctl = "${pkgs.wireplumber}/bin/wpctl";
|
|
in
|
|
{
|
|
bindle = [
|
|
", XF86AudioRaiseVolume, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ -l 2.0 2%+"
|
|
", XF86AudioLowerVolume, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ -l 2.0 2%-"
|
|
"CTRL, XF86AudioRaiseVolume, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SOURCE@ -l 1.0 2%+"
|
|
"CTRL, XF86AudioLowerVolume, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SOURCE@ -l 1.0 2%-"
|
|
];
|
|
|
|
bindl = [
|
|
", XF86AudioMute, exec, ${wpctl} set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
", XF86AudioMicMute, exec, ${wpctl} set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
|
];
|
|
};
|
|
};
|
|
}
|