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";