56

I am using external USB audio card to handle speakers, also got the headphones connected to jack port. I need to switch them few times a day and getting extremely frustrated, as the only way I've found is:

  1. Open search tool.
  2. Type: se.
  3. Click on 'Settings'.
  4. Navigate to 'Sound'.
  5. Change output to desired one.

On Unity I could navigate to 'Sounds Settings' from the audio icon in the tray. No idea how to do that on GNOME. Other than this finding GNOME superior to Unity. Happy that Canonical made that move.

pomsky
  • 68,507
Tom Raganowicz
  • 995
  • 1
  • 10
  • 15

3 Answers3

66

You may use the Sound Input & Output Device Chooser GNOME shell extension.

(The extension) Shows a list of sound output and input devices (similar to gnome sound settings) in the status menu below the volume slider. Various active ports like HDMI , Speakers etc. of the same device are also displayed for selection.

enter image description here
(screenshot source: extension's homepage at extensions.gnome.org)

You may visit its GitHub page for more info.

Refer to this to learn more about installing and managing GNOME Shell extensions: How do I install and manage GNOME Shell extensions?

pomsky
  • 68,507
20

You can use the Sound Switcher Indicator from Dmitry Kann's PPA

sudo add-apt-repository ppa:yktooo/ppa
sudo apt-get update
sudo apt-get install indicator-sound-switcher

From the OMG Ubuntu article:

Sound Switcher axes the need to use System Settings and, in just two clicks, lets me hop between audio input and output devices straight from the system tray.

screenshot showing menu dropdown from indicator icon with audio options

Zanna
  • 70,465
Josef B.
  • 301
  • Looks like it's an indicator for Unity. Does this work with GNOME shell in Ubuntu 17.10? – pomsky Oct 29 '17 at 14:03
  • @pomsky I tested it on ubuntu 18.10 and it works. It's also worth noting that the extension in the top answer has last been updated for gnome 3.22, it doesn't look like a still alive project anymore. – dsSTORM Oct 24 '18 at 08:21
  • 1
    @dsSTORM It's been updated for later GNOME shell versions (probably not available at extensions.gnome.org yet, their review process sometimes takes too long!). Also it doesn't look like the developer is completely abandoning the project right now (refer to this). – pomsky Oct 24 '18 at 08:30
  • @pomsky hmm, Yes it's even already updated for 3.30, it's only the the version on the extensions site that is stuck at 3.22 – dsSTORM Oct 24 '18 at 08:53
  • 1
    Words well in Ubuntu 22.04 LTS – ahe_borriglione Dec 02 '22 at 08:29
6

An older tool, but coming with more options than indicator-sound-switcher (and without the need for a new PPA), is pasystray.

sudo apt install pasystray

It should be launched as PulseAudio System Tray.

You could add pasystray to startup programs list.

The output switch is under "Playback Stream" section.

enter image description here

Beside the fact it doesn't need a new PPA it also has a lot of supplementary options.

cipricus
  • 3,444
  • 2
  • 34
  • 85
  • 2
    Installs right away, but did not show all outputs on my machine (Ubuntu 19.10). – pixelbrackets Dec 10 '19 at 18:22
  • I don't fully understand the way gnome handles sound devices but it seems to be incompatible with pulseaudio frontends in the sense that once you've adjusted anything in pulseaudio, gnomes volume controls no longer work or they do strange things. – thomasrutter Oct 27 '22 at 08:15