I don't know if the original fork of the repo is still being maintained, but I have stopped using Alfred in favor of Raycast.
I have heard that this might have issues with newer macOS versions, sorry I wont' have a chance to fix it!
This Alfred v4 workflow helps you to quickly connect to your AirPods using the Alfred search or a hotkey.
Check out the Raycast variant too, if you use Raycast instead/also.
-
Using
brew
, install/updateBluetoothConnector
utility usingbrew install bluetoothconnector
or
brew update && brew upgrade bluetoothconnector
-
Download the workflow file ↗ here and import it into Alfred.
It is recommended to have HOMEBREW_PREFIX
defined, for M1 Macs this will be /opt/homebrew/
.
If you encounter any errors running the workflow double-check the steps above and test whether you have Python 3.x installed on your system (Python 2.x is no longer compatible with this workflow).
On your first run, you have to select the bluetooth device that are your AirPods. Once you have done this you can use the airp
keyword to connect / disconnect your AirPods. Whenever you want to change the device you can use the airp config
keyword to select a new bluetooth device.
By default, this workflow also offers the ability to trigger a connect / disconnect action using a hotkey. The default hotkey is ⌃ Ctrl + ⇧ Shift + ⌘ Cmd + A
.
- Big thanks to Marius Kießling (@mariuskiessling) for creating the original workflow
- Big thanks to Daniel Schäfer (@JohnAZoidberg) for helping design the RegEx used in this workflow.