This Alfred workflow helps you to quickly connect to your AirPods using the Alfred search or a hotkey.
-
Install the
BluetoothConnector
utility usingbrew install bluetoothconnector
Make sure to have
brew
installed. This will install the latest version of BluetoothConnector. Unfortunately BluetoothConnector is not @-versioned. Thus, make sure that brew installs version2.0.0+
of BluetoothConnector or upgrade usingbrew upgrade bluetoothconnector
in case you update from an older version of this workflow.
-
Download the workflow file ↗ here and import it.
If you encounter any errors running the workflow double-check the steps above and test whether you have Python installed on your system (version 2.7 and version 3.* are 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 Daniel Schäfer (@JohnAZoidberg) for helping design the RegEx used in this workflow.