From 8a30d60c6793ba0c1ee5a84fab43a519ac3c5567 Mon Sep 17 00:00:00 2001 From: gytic <149968794+gytic@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:33:39 +0200 Subject: [PATCH] fix: switch to pactl i guess it has a wider adpotion because it just relies on pulseaudio? --- nixos95/keybinds.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nixos95/keybinds.nix b/nixos95/keybinds.nix index 2e682c1..0fb40a0 100644 --- a/nixos95/keybinds.nix +++ b/nixos95/keybinds.nix @@ -16,7 +16,8 @@ in { ''; type = t.listOf t.attrs; default = let - amixer = lib.getExe' pkgs.alsa-utils; + # relies on pulseaudio + pactl = lib.getExe' pkgs.pulseaudio "pactl"; in [ { key = "XF86WWW"; @@ -40,15 +41,15 @@ in { } { key = "XF86AudioMute"; - exe = "${amixer} set Master toggle"; + exe = "${pactl} set-sink-mute @DEFAULT_SINK@ toggle"; } { key = "XF86AudioLowerVolume"; - exe = "${amixer} set Master 5%-"; + exe = "${pactl} set-sink-volume @DEFAULT_SINK@ -5%"; } { key = "XF86AudioRaiseVolume"; - exe = "${amixer} set Master 5%+"; + exe = "${pactl} set-sink-volume @DEFAULT_SINK@ +5%"; } ]; };