vitor Posted September 2, 2019 Author Share Posted September 2, 2019 2 hours ago, msa said: didn't seem to connect for some reason to the blueutil located in the shared_resources directory (…) I installed blueutil via homebrew as you recommended I’ve changed the order of the instructions; rm should have come first. My suggestion wasn’t to install blueutil via Homebrew, but rather to upgrade it if it was already installed (because that’s what _shared_resources looks for first). Removing blueutil from the _shared_resources directory should be enough to have it reinstall when invoking the Workflow. It works for me, but if you can still reproduce I’m interested, yes. To reproduce you’d brew uninstall blueutil; rm "${HOME}/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/blueutil" then call the Workflow (version 1.2.0). If it doesn’t work, I’d like to know the result of "${HOME}/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/blueutil" --version. Link to comment
msa Posted September 2, 2019 Share Posted September 2, 2019 That did the trick, I uninstalled blueutil from homebrew, called the workflow and downloaded the utility in the shared_resources as you mentioned. Great thanks for the help! Link to comment
vitor Posted December 2, 2021 Author Share Posted December 2, 2021 Update. Auto-update device connection status. To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater. Link to comment
vitor Posted June 9, 2022 Author Share Posted June 9, 2022 Update. No longer toggle menu bar icon visibility. To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater. Link to comment
vitor Posted January 13 Author Share Posted January 13 Updated to 2023.1. Workflow is now distributed via the Alfred Gallery. Download the new version from there or update directly from Alfred.New repository.New icon.New About.Add configurable keywords.Rewritten in JXA.Remove OneUpdater in favour of Gallery updating. Link to comment
mark_eerstift Posted March 15 Share Posted March 15 Hi @vitor I have an issue with Dente Azul and was hoping you could help! I have installed Dente Azul today, but unfortunately using the btd command to disconnect a connected bluetooth headphone does not work. I have a bluetooth headphone connected to my M1 Mac. Using the btd command successfully shows the headphone, and shows it as enabled/connected. But pressing "enter" with the headphone selected does not disconnect the headphone as expected. Strangely, when I disconnect the headphone via the Bluetooth menu in MacOS, using the btd command does work to connect to the headphones. Using blueutil via the terminal to directly issue the disconnect command to the device's address works fine, so it's not a compatibility issue with the headphone. The device address that Dente Azul passes to the script is the correct address. I have the latest version of blueutil installed via HomeBrew (2.9.1). (I also removed it and used Alfred's dependency manager to install it, but no dice). I also have the latest version of Dente Azul (v2023.1) I am running MacOS Ventura 13.2.1 Alfred Version: 5.0.6 Attached is the debug output of running the btd command and pressing enter. Entering "blueutil --disconnect 30-53-c1-61-9c-c6" in the terminal disconnects the headset as intended. If you can provide any help with troubleshooting, that would be awesome as this is a really cool extension! Link to comment
mark_eerstift Posted March 15 Share Posted March 15 I actually fixed the issue in the script myself. I noticed that the correct address was passed to the script that runs the bluetooth command. I placed an echo in front of the $address value, which correctly spits out the address in the Alfred debugger. Then I placed an echo in front of the $connected value. However, this spits out a "1" instead of a "true" value. The script starts by comparing the $connected value to 'true', but since the value is 1, the condition is false and the disconnect command is never run. Changing the script from [[ "${connected}" == 'true' ]] to [[ "${connected}" == '1' ]] fixed the issue. Attached is the script as working for me. Adding the Echoes to observe the values | Output of the script with the echoes. See that the "$Connected" value is 1. Changing the script to compare the value of $Connected to '1' instead of 'true' like so fixes the issue Link to comment
vitor Posted March 15 Author Share Posted March 15 Welcome @mark_eerstift, Right you are. I've pushed the fix and it’ll be live in the Gallery later today. Thank you for looking into it. Link to comment
gingerbeardman Posted April 13 Share Posted April 13 How would I rig a hotkey to this to toggle bluetooth regardless of current value? Link to comment
vitor Posted April 13 Author Share Posted April 13 @gingerbeardman Is this what you mean? If so, I’ll make a proper release shortly. Link to comment
vitor Posted April 25 Author Share Posted April 25 @gingerbeardman Could you confirm if the above is what you requested, so I can either make a proper release or make changes? Link to comment
gingerbeardman Posted April 25 Share Posted April 25 Hi Vitor! Sorry for the delay, I have just released a new video game project so have been busy. That's exactly what I was looking for, thanks. vitor 1 Link to comment
vitor Posted April 25 Author Share Posted April 25 Just now, gingerbeardman said: Sorry for the delay No worries. I thought you might’ve missed the previous message since it was soon after your request. 1 minute ago, gingerbeardman said: I have just released a new video game project so have been busy. Do tell! Can you share some details or a link? Link to comment
vitor Posted April 25 Author Share Posted April 25 Oh, I see you make games for the Playdate. Very cool! Congrats on the new launch! Link to comment
gingerbeardman Posted April 25 Share Posted April 25 Thanks! Promo site is at http://sparrowsolitaire.com Or big pinned threads on my social media accounts, I think you found them. Cheers! vitor 1 Link to comment
vitor Posted November 20 Author Share Posted November 20 Updated to 2023.6.Detect if Bluetooth permission is not granted.Shorter Objective-C functions. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now