airpods connector

From their README

Alfred AirPods Connector

This Alfred workflow helps you to quickly connect to your AirPods using the Alfred search or a hotkey.

See it in action

Workflow demo

Installation

  1. Install the BluetoothConnector utility using

    brew 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 version 2.0.0+ of BluetoothConnector or upgrade using

    brew upgrade bluetoothconnector

    in case you update from an older version of this workflow.

  2. Download the workflow file ↗ here and import it.

In case of errors

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).

Usage

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.

Acknowledgments

  • Big thanks to Daniel Schäfer (@JohnAZoidberg) for helping design the RegEx used in this workflow.