pacmax beta

Alfred Pac by bmunoz89 on GitHub

wf bluetooth manager

Connect and disconnect a bluetooth device easily

From their README

GitHub release GitHub Releases GitHub All Releases GitHub

🚨 Supports Alfred 4 🚨

Workflows created or edited in any version of Alfred are fundamentally incompatible with earlier versions, even if no new features are used.

https://www.deanishe.net/alfred-workflow/guide/update.html#id3

I am using alfred 4, therefore I cannot make it compatible with alfred 3

💻 Installation 👾

Install brew https://brew.sh/

And then run this command on a terminal:

brew install blueutil

Python 2 and macOS Monterrey

https://www.alfredapp.com/help/kb/python-2-monterey/

This is the recommended solution by Alfred and the solution implemented from release 3.0.0 and above, therefore I don't recommend to upgrade your workflow if you don't have macOS Monterrey.

export PATH="/opt/homebrew/bin:/usr/local/bin:${PATH}"
eval "$(brew shellenv)"
brew install pyenv
pyenv install 2.7.18
ln -s "${HOME}/.pyenv/versions/2.7.18/bin/python2.7" "${HOMEBREW_PREFIX}/bin/python"

Which should lead to have linked the python bin to this path /usr/local/bin/python. To check if all the previous commands were successful, run this command:

/usr/local/bin/python --version
# Which should print this "Python 2.7.18"

Download the release according to your OS version

macOS Monterey or previous macOS

📸 Screenshots

🔑 Keywords

  • bset: Set the default device
  • bc: Connect the default device
  • bd: Disconnect the default device
  • bcs: Select the device you would like to connect to
  • bds: Select the device you would like to disconnect to
  • bm:
    • Bluetooth on and off
    • Enable and disabled check of updates
    • Manually check for an update
    • Clear data: Allowing to clear the blueutil path saved(just in case 🤷🏽‍♂️)

Default device = Is the device used in bc and bd commands without having to select one like in bcs or bds.

🆘 Help

- What should I do if a get the message "Change your blueutil or brew path"?

To get them, run the following commands in your own terminal:

> which brew # paste this command
/usr/local/bin/brew # this is just an example result
> which blueutil # and paste this one
/usr/local/bin/blueutil # this is just an example result

Copy both results and follow the steps in the next point.


- How to set my own brew/blueutil path?

Step 1: Open your Alfred settings inside the workflows panel

Step 2: Press the button "Configure workflow and variables"

Step 3: Edit bluetooth_command_path or brew_command_path variables with your own

Easy peasy! 😋

Latest release

7 earlier releases
  • 2.4.14 years ago, 165 KBDownload
    • Fix disconnect does not work on macOs Monterrey #14
    • Wait until the device is connected and disconnected as well
  • 2.3.05 years ago, 240 KBDownload
    • Add workflow variables to manage commands paths
  • 2.1.06 years ago, 237 KBDownload
    • Add option to clear data: All the stored data related with the "blueutil" command path is deleted
    • Add option to check update
    • Update alfred-workflow==1.40.0
  • 2.0.16 years ago, 230 KBDownload
    • fix blueutil in bluetooth.py hardcoded to /usr/local/bin Fixes #10
    • change run_command decode
  • 2.0.06 years ago, 230 KBDownload

    Maintain the same keywords on Alfred, but underneath it changes everything:

    • Change homebrew library: bluetoothconnector->blueutil
    • Instead of multiples files is used just one with a class that handles everything
    • With the change of library now is possible to know when bluetooth devices are connected or not
    • It was added a keyword bm to turn bluetooth on and off, and the same for updates
  • 1.0.17 years ago, 168 KBDownload
    • Use alfred-workflow notification system
    • Improve alfred workflow colors
    • Show device name on keywords bc and bd
    • Fix update
  • 1.0.07 years ago, 259 KBDownload
    • Add device filter