Jump to content
Sign in to follow this  
earthpyy

Bluetooth Connect — Connect/Disconnect paired bluetooth device

Recommended Posts

Bluetooth Connect

Connect/Disconnect paired bluetooth device

THIS IS WHAT AIRPODS OWNERS ARE WAITING FOR! LOL

bluetooth_connect_screenshot.thumb.png.8520775a62dbaf95eb743d2e842bcf50.png

 

 

Usage

  • bt : Connect/Disconnect to favorite device
  • bt <device name or alias> : Connect/Disconnect to any paired device
    • Command + Enter  /  Command + Click to mark/unmark as favorite device
  • btset <alias> > <device name> : Set an alias for a bluetooth device
  • btset <alias> <device name> Set an alias for a bluetooth device (short syntax, alias must not included space)
  • btunset <alias>: Unset an alias

 

Features

  • Connect/Disconnect paired bluetooth device using macOS UI (AppleScript)
  • Set an alias for a bluetooth device
  • Mark a bluetooth device as your favorite device for easily access

 

 

Todo

  • Load device list from system profiler
  • Detect which one should connect or disconnect to use as text in items
  • Turn on automatic toggle when mark as favorite and only connect to device
  • Connect bluetooth device without using UI

 

 

GitHub

earthpyy/alfred-bluetooth-connect

Quote

Feel free to submit any issue or pull request!

 

 

Notes

For latest feature and other information please visit GitHub Repository

 

Edited by earthpyy
edit title

Share this post


Link to post

This is a great workflow, and thank you. Unfortunately it won't work if you use a tool like Bartender that moves the bluetooth menu item off the main bar (or if you don't want the bluetooth menu item displayed).  For us cranks it's harder; I installed a command line tool called Bluetooth Connector and made a simpler less friendly workflow than yours that I named "Toggle my airpods" that just calls the command line /usr/local/bin/BluetoothConnector 4c-32-75-c2-09-b4 (because that's the MAC address of my airpods; yours would be different)

 

I personally suggest people find a way to be less stubborn than me and just use your workflow but I thought I'd post this for the unfortunate souls like me who find this post.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×