With multiple sound output devices (headphones, speaker, etc.), selecting which one to use on Ubuntu 20.04 is kinda clumsy. Doing so involves opening Settings, navigating to Sound, selecting the Output device. Windows and macOS make it easy by having a selector on the taskbar. With a gnome extension Ubuntu can also have a sound output device selector on the task bar.
The best I’ve found is gse-sount-output-device-chooser.
Installation leaves a little to be desired, but it’s not too bad (and does not require root or adding custom PPAs).
#!/usr/bin/env bash
set -euo pipefail
git clone git@github.com:kgshank/gse-sound-output-device-chooser.git /tmp/gse
mkdir -p ~/.local/share/gnome-shell/extensions
cp -r /tmp/gse/sound-output-device-chooser@kgshank.net ~/.local/share/gnome-shell/extensions/
gnome-extensions enable sound-output-device-chooser@kgshank.net
Then logout and log back in.
gl;hf!