From 03ca915506637054d32689a0de6f4a2635282a14 Mon Sep 17 00:00:00 2001 From: nydragon Date: Sun, 2 Feb 2025 21:26:58 +0100 Subject: [PATCH] fix: audio adjustment --- home/sway/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/home/sway/default.nix b/home/sway/default.nix index 504076e..dec860d 100644 --- a/home/sway/default.nix +++ b/home/sway/default.nix @@ -86,9 +86,11 @@ lib.mkIf osConfig.programs.sway.enable { "${mod}+n" = "exec nysh msg dash toggle"; "--locked XF86MonBrightnessUp" = "exec --no-startup-id ${getExe pkgs.brightnessctl} s +10%"; "--locked XF86MonBrightnessDown" = "exec --no-startup-id ${getExe pkgs.brightnessctl} s 10%-"; - "--locked XF86AudioRaiseVolume" = "exec --no-startup-id ${getExe pkgs.pw-volume} change +5%"; - "--locked XF86AudioLowerVolume" = "exec --no-startup-id ${getExe pkgs.pw-volume} change -5%"; - "--locked XF86AudioMute" = "exec --no-startup-id ${getExe pkgs.pw-volume} mute toggle"; + "--locked XF86AudioRaiseVolume" = + "exec --no-startup-id ${getExe pkgs.pamixer} -u && ${getExe pkgs.pamixer} -i 5"; + "--locked XF86AudioLowerVolume" = + "exec --no-startup-id ${getExe pkgs.pamixer} -u && ${getExe pkgs.pamixer} -d 5"; + "--locked XF86AudioMute" = "exec --no-startup-id ${getExe pkgs.pamixer} -t"; "--locked XF86AudioPlay" = "exec ${getExe pkgs.playerctl} play-pause"; "--locked XF86AudioPause" = "exec ${getExe pkgs.playerctl} play-pause"; "--locked XF86AudioNext" = "exec ${getExe pkgs.playerctl} next";