diff --git a/audio.nix b/audio.nix index 0044e8e..6086870 100644 --- a/audio.nix +++ b/audio.nix @@ -1,6 +1,12 @@ { pkgs, ... }: { + environment.systemPackages = with pkgs; [ + pipewire + wireplumber + wpctl + ]; + services.pipewire = { enable = true; alsa.enable = true; diff --git a/hyprland.nix b/hyprland.nix index 69d6bd1..be71f34 100644 --- a/hyprland.nix +++ b/hyprland.nix @@ -99,9 +99,9 @@ ", XF86MonBrightnessUp, exec, light -A 10" ", XF86MonBrightnessDown, exec, light -U 10" - ", XF86AudioRaiseVolume, exec, pamixer -i 5" - ", XF86AudioLowerVolume, exec, pamixer -d 5" - ", XF86AudioMute, exec, pamixer -t" + ", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ +5%" + ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ -5%" + ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle" ]; }; };