Bluetooth headset switcher between a2dp_sink and headset_head_unit written on Go for linux OS with GTK. Lives in tray, it doesn't need settings, headsets will detect automatically. Just run and enjoy using :)
I was inspired by this script switchHeadphones.sh and wrote Go application, which searches bluetooth headsets and can changes them mode between high quality for listening and low quality for speaking.
Also, thanks to slytomcat for systray libraries.
go 1.16 +
Tested on Ubuntu 20.04 GNOME.
go get -u github.com/dethlex/headset-switcher