One button connect/disconnect Bluetooth headphones on Windows 10!
- Clone or download this repo
- Install BluetoothCLTools (say yes when asked to add tools dir to path)
btdiscoveryin command line to get your headphones MAC address
- Paste the MAC address into first line of mac.txt file and save
Now you can double-click
disconnect.vbs to connect/disconnect your BT headphones.
But I don't want to click...
Well, you can bind the script to some media keyboard button or use Autohotkey to do some fancy shortcut.
So how does it work?
Win10 automatically disconnects BT device after all services the device offers are disabled.
This script simply disables services offered by selected BT device.
Same same on connect.
But it doesn't work for me!
Check if your headphones offer more BT services than:
- Hands-Free Profile (111E)
- A2DP AudioSink (110B)
If so, add them to
The list of services can be found here.