So audio (in/out) Sony WH-1000MX3 and Intel® Dual Band Wireless-AC 8265 on aXPS13 running Arch Linux, how hard can it be?
bluez manages the bluetooth connection part, but will fail if it doesn't have access to the right profile
systemctl --user enable --now pulseaudiopulseaudio has socket activation, but it doesn't work if you try to connect to a bluetooth headset before something has started pulseaudio, so enable it to always make it available.
bluetoothctl power onturn on bluetooth (? or
/etc/bluetooth/main.confbut not sure how it interacts with pulseaudio being user service)
bluetoothctl agent ononly needs to be done once
bluetoothctl scan onfind bluetooth things in range, only needs to be done once
bluetoothctl pair xx:xx:xx:xx:xx:xxpair with device, only needs to be done once
bluetoothctl connect xx:xx:xx:xx:xx:xxconnect to device
bluetoothctl trust xx:xx:xx:xx:xx:xxautoconnect to device on power on
Monitor of ...is to listen to what the mic picked up
+more pulseaudio modules