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 email@example.com:kgshank/gse-sound-output-device-chooser.git /tmp/gse mkdir -p ~/.local/share/gnome-shell/extensions cp -r /firstname.lastname@example.org ~/.local/share/gnome-shell/extensions/ gnome-extensions enable email@example.com
Then logout and log back in.