2

I would like to automute certain audio clients when I want, without human intervention (e.g. pulling up pavucontrol) when using Fedora/pulsewire. This worked before using pacmd, but that doesn't work under pipewire; and the replacement command, pw-cli, doesn't support set-sink-input-mute or set-source-output-mute.

pw-cli doesn't seem to support muting that I could see. pw-mon shows a relevant change when using pavucontrol (or easyeffects) to mute a stream, but that didn't help me figure out how to do it myself.

Seth Robertson
  • 30,608
  • 7
  • 64
  • 57

1 Answers1

3

This is a bit late but i recently needed it too. Instead of pacmd you can use pactl set-sink-input-volume <sink-id> <volume>

  • 2
    This answer led me to the correct solution for me: `pactl set-source-output-mute "$(pactl list source-outputs | perl -ne '/^Source Output #(\d+)/ && { $sourceid=$1 }; /^\s+node.name = \"APPNAME\"/ && print $sourceid;')" toggle` – Seth Robertson Mar 15 '22 at 14:26