Does anyone know how I can select my audio output via the command line? I’m frequently switching between using my monitors inbuilt speakers and a USB audio interface and I’m finding it laborious to navigiggerate graphically through the settings in GNOME to do so.

What I’d like to do is set up a couple of bash aliases and do it in my terminal.

What’s the best way for me to do that?

Many thanks

  • Rentlar
    link
    fedilink
    arrow-up
    4
    ·
    13 days ago

    Pactl commands will do what I think you want, I keep forgetting the exact syntax. Once you find something that works, you can bind those commands to some key combos to easily switch

    • rotopenguin@infosec.pub
      link
      fedilink
      English
      arrow-up
      6
      ·
      13 days ago

      The hard part is finding a stable identifier, instead of “this interface is know as sink 48 at this exact instant. It will be a completely different number tomorrow. It might even be a potato emoji, who knows?”