A powerful toolkit for managing your bluetooth connections. Includes Remote Trigger, to manage your Bluetooth devices on the big screen.
- Download the Alfred workflow and double-click to install.
- Run Resolve Dependencies in Alfred Preferences.
- Allow Alfred to control bluetooth.
- Enjoy!
Please see troubleshooting section if you experience any issues, and post an issue if the problem persists. Description of commands can be found below.
- Turn bluetooth on:
bton
- Turn bluetooth off:
btoff
- Toggle bluetooth status:
bttoggle
- Reset (disable, wait 1.5 seconds, enable:
btreset
- Connect/disconnect from device:
btd
+device name
- Set favorite device:
btsetfavorite
+device name
- Toggle connection with favorite device:
- with hotkey:
cmd-ctr-option-f
- with keyword:
btfavorite
- with hotkey:
- Remove device as favorite:
btd
+device name
+ press modifier keyshift
btsetfavorite
+device name
+ press modifier keyshift
- Pair:
btp
+device name
- Wait 5 seconds for results to show up.
- Unpair:
btd
+device name
+ press modifier keycmd
- See status of bluetooth connection and paired devices.
btstatus
Set workflow configuration variable confirm
in workflow to true
if you want to force user confirmation on toggle and
deactivation commands. (Useful for iMacs and Mac Minis who that would have trouble turning Bluetooth on again without
any input devices.)
Most, or all, the listed commands have their own Remote Trigger. (You're welcome to add ones that are missing.)
Have you granted Alfred access to controlling bluetooth? If you still experience issues after granting access, these problems probably stems from the notificator
binary being blocked by Gatekeeper. We therefore need to allow it to run (remove the quarantine attribute from the bundled binary):
- Open workflow folder in Finder by right clicking workflow (see image).
- Right-click on
notificator
and click 'open' (see image). - Confirm open when dialog appears.
- This can alternatively be done using the terminal.
If you experience the error xcrun: error: invalid active developer path
, Command Line Tools is likely not installed properly. More info, as well as instructions on how to install it, can be found here: https://apple.stackexchange.com/a/254381
Use the following command once in directory:
Go to System Preferences -> Privacy & Security -> Bluetooth
and add the Alfred version you are using (e.g., Alfred 5). If you have already added Alfred, ensure it is turned on.
Many users with silicon chip macs experienced issues with the local binaries provided in the workflow. It also required manual removal of quarantine for many users, and relied on workflow updates for every new release of blueutil
. After the implementation of Alfred's new [Resolve Dependecies feature], use of Homebrew installed tools suddenly became a lot more user friendly. I decided the time had come for letting Homebrew manage blueutil
.
(Note: in the second image, the binary should be notificator
, not blueutil
.)
- blueutil binary is used for bluetooth functionality.
- notificator binary is used for notifications.