Pulseaudio sink name for default

I have 2 physical output devices, say “speakers” and “headphones”, and I frequently switch between them.

I also have a script that creates 2 virtual sinks for voice call and game by loading module-combine-sink twice on “speakers” and “headphones”.

It works, but it’s annoying that every time I want to switch device, I also need to mute the other one.

Ideally, I want to use module-remap-sink instead, remapping the 2 virtual sinks to the default one. This is where I’m stuck. What do I put in for master?

drem, (edited )

Were you thinking about something like this?


<span style="color:#323232;">**Tip:** The default source can be referred as `@DEFAULT_SOURCE@` in commands, for example: `$ pactl set-source-mute @DEFAULT_SOURCE@ toggle`
</span>

Default sink:


<span style="color:#323232;">@DEFAULT_SINK@
</span>
NorthWestWind,
@NorthWestWind@lemmy.world avatar

Yes! Thank you very much!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • DreamBathrooms
  • magazineikmin
  • thenastyranch
  • Youngstown
  • khanakhh
  • rosin
  • slotface
  • osvaldo12
  • InstantRegret
  • PowerRangers
  • kavyap
  • tsrsr
  • ngwrru68w68
  • Durango
  • Leos
  • hgfsjryuu7
  • cubers
  • vwfavf
  • tacticalgear
  • everett
  • ethstaker
  • mdbf
  • GTA5RPClips
  • tester
  • cisconetworking
  • modclub
  • normalnudes
  • anitta
  • All magazines