If you have a modern pair of Bluetooth headphones, chances are it supports aptX. I personally prefer the sound of the AAC Bluetooth codec, but aptX-LL (Low Latency) is a must-have if your headphones support it for watching videos and minimising A/V sync issues. If your headphones support aptX-HD or Sony’s LDAC, you’ll also want to install this. Out of the box, most Linux distros forgo aptX support because it’s a proprietary codec but it’s fairly simple to install and enable with the PulseAudio plugin.
As with most things, guides can change over time so if in the future you bump into any problems with the commands below check out the Github page and build from scratch, but these commands worked for me on Ubuntu 20.04 on July 31st 2020.
sudo add-apt-repository ppa:eh5/pulseaudio-a2dp sudo apt update sudo apt install libavcodec-dev libldac pulseaudio-module-bluetooth