There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Select Audio Output Via Command Line

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

kusivittula ,

does gnome not have audio output switcher in the tray audio popup menu thingy?

thurstylark ,

That depends on which audio system you’re running.

Since this can vary depending on your distro, the easiest place to look for that info is going to be your distro’s documentation. That documentation may also include instructions for how to accomplish exactly what you want.

Rentlar ,

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

BaalInvoker ,

Doesn’t alsamixer work?

Anyway, you may wanna try pactl set-default-sink [sink-name]> as well

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines