GoldenChaos / GoldenChaos-BTT

The complete Touch Bar UI replacement for BetterTouchTool
https://community.folivora.ai/t/goldenchaos-btt-a-complete-touch-bar-ui-replacement-preset/1281
317 stars 11 forks source link

Bluetooth icon always red (either BT enabled or not) #25

Open euZebe opened 2 years ago

euZebe commented 2 years ago

Expected behaviour

When toggling bluetooth on, I would like to see a white bluetooth icon .

Current behaviour

Currently, the bluetooth icons keeps being red, either bluetooth is...:

enabled and connected bluetooth device connected

enabled bluetooth off

disabled bluetooth on

Additional info

As far as I remember, it worked well one year ago, when I purchased BTT. I would say the bug appeared about 6 months ago.

configuration

MBP M1 MacOS Monterrey BTT v3.742 GoldenChaos-BTT v3.563 with a custom configuration (Menu bar / bluetooth toggle ON)

DanDigits commented 1 year ago

Hey, I had this too and put in a small fix, open up BTT and on the left hand side, navigate to the blue "Menu Bar" icon, then scroll in the second pane to "Bluetooth Toggle: Script", then on the far right pane, replace Alternate Color Regex with

^State: Off

and replace the code in the script with this:

try
    do shell script "system_profiler SPBluetoothDataType | grep -i \"Power: On\""
on error
    set myString to do shell script "system_profiler SPBluetoothDataType | grep -i \"State:\""
    return (do shell script "echo \"" & myString & "\" | xargs")
end try

You can just copy and paste, hopefully GC fixes it soon