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, 2023 Author Share Posted January 13, 2023 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, 2023 Share Posted March 15, 2023 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, 2023 Share Posted March 15, 2023 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, 2023 Author Share Posted March 15, 2023 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, 2023 Share Posted April 13, 2023 How would I rig a hotkey to this to toggle bluetooth regardless of current value? Link to comment
vitor Posted April 13, 2023 Author Share Posted April 13, 2023 @gingerbeardman Is this what you mean? If so, I’ll make a proper release shortly. Link to comment
vitor Posted April 25, 2023 Author Share Posted April 25, 2023 @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, 2023 Share Posted April 25, 2023 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, 2023 Author Share Posted April 25, 2023 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, 2023 Author Share Posted April 25, 2023 Oh, I see you make games for the Playdate. Very cool! Congrats on the new launch! Link to comment
gingerbeardman Posted April 25, 2023 Share Posted April 25, 2023 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, 2023 Author Share Posted November 20, 2023 Updated to 2023.6.Detect if Bluetooth permission is not granted.Shorter Objective-C functions. Link to comment
harrison Posted February 27 Share Posted February 27 I am having trouble getting Dente Azul to work on my machine running Sonoma 14.3. I've given Alfred all the necessary permissions... running the debugger comes back with this: [18:58:56.553] Dente Azul[Script Filter] Queuing argument '(null)' [18:58:56.631] Dente Azul[Script Filter] Script with argv '(null)' finished [18:58:56.631] STDERR: Dente Azul[Script Filter] env: blueutil: No such file or directory [18:58:56.632] Dente Azul[Script Filter] {"items":[{"title":"Bluetooth is On","subtitle":"Action to turn it off","arg":"off","icon":{"path":"icon.png"}}]} [18:58:57.223] Dente Azul[Script Filter] Processing complete [18:58:57.224] Dente Azul[Script Filter] Passing output 'off' to Run Script [18:58:57.225] Dente Azul[Script Filter] Passing output 'off' to Conditional [18:58:57.232] ERROR: Dente Azul[Run Script] /Users/harrison/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/B12C6B6E-4113-443D-9615-22DCFA030A50:1: command not found: blueutil Thanks in advance for any help or insight. Link to comment
vitor Posted February 27 Author Share Posted February 27 You have to install blueutil, as per the information at the top of the Gallery page. Run the dependencies manager. Link to comment
giovanni Posted March 22 Share Posted March 22 (edited) Thank you for this great workflow @vitor!! Would you consider adding the battery status, if available? @zeitlings had a script to retrieve it. Edited March 22 by giovanni Link to comment
vitor Posted March 24 Author Share Posted March 24 This workflow has been using blueutil since it was created in 2017 (7 years ago). blueutil does not have an option to show battery status, but if they add it I can add it to the workflow too. The alternative is rewriting the whole workflow from scratch. Which I’m not against and have considered it before but zero promises. giovanni and ThanhD 1 1 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