DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

[Feature] Allow muting microphone independently

Open kevb1973 opened this issue 1 year ago • 4 comments

Feature Description

Currently when audio is muted, it mutes everything at once, all inputs/outputs.

Use Case

I think some users may prefer to keep their microphone muted unless it's actively being used, but still want to listen to audio.

Edit to add: Also, independent volume control of microphone.

kevb1973 avatar Aug 30 '25 00:08 kevb1973

Which mechanism is the mute? For me it doesn’t through the UI at least, and there’s mic volume in the control center / ipc as well (just when input is expanded since it’s less important than output)

bbedward avatar Aug 30 '25 00:08 bbedward

I'm clicking on the speaker icon as shown in this image: Image

I was just testing the IPC calls and it seems audio mute and audio micmute are both doing the exact same thing. They both toggle mute for both input and output at the same time.

Similarly, volume controls act like they are linked, so even if you adjust the microphone volume as mentioned, it will also adjust the output volume and vice versa. Hope that makes sense.

kevb1973 avatar Aug 30 '25 02:08 kevb1973

I don't really know about this, because it just calls sink.audio.muted = !sink.audio.muted - which should only apply to the default sink (output) in pipewire. (and for me all mute/volume controls are device dependent, so i dont have this behavior)

From the API level I don't think there's any solution though, I would say it's either:

  1. Some driver quirk with your audio driver
  2. Some special pipewire configuration that results in this
  3. Some other package interfering - receiving dbus events and misinterpreting them idk
  4. A quirk in quickshells pipewire implementation

But I don't think there's anything we can do here - (since there's nothing else we can do with the pipewire api, the button is only calling mute = !muted on the default sink, which should be not related to the source or other sinks in any way)

sauce

bbedward avatar Aug 30 '25 02:08 bbedward

If it's working fine on your end, then it must be something to do with my setup. I'm just using the normal pipewire setup in NixOS, but maybe I did something in pavucontrol? I'll do some more digging on my end.

I generally just use my keyboard volume knob to change volume/mute, and don't even own a microphone so it's not really an issue for me personally. Maybe just wait and see if any other users have issues then we'd have more to work with. If I find a problem on my end, I'll make sure to add a comment to this issue. 👍

kevb1973 avatar Aug 30 '25 02:08 kevb1973