GoldenChaos-BTT Support and Feedback Thread

Does the long-press "7-Day Forecast" work for you on the new version?
It worked on the previous version for me but on this one I can't get it to work.

Working fine for me over here - it hasn't been changed or anything, so something else must be wrong. Can you check to see if the long press option is set for any of the weather widgets not in the 7-day forecast group?

confirmed working for me as well.

new version is amazing. another donation coming your way for creating the dock.

2 Likes

So glad you're enjoying it :smile: also I'm stealing the "dock" name for it, hope you're happy lol

1 Like

Okay, I got it figured out :grin: Re-importing the latest preset didn't help so i decided to re-install the latest Alpha version of BTT and it seemed to work.
All of the long press options for all weather widgets outside of the 7-Day Forecast were set.
I don't know what was causing the issue ¯_(ツ)_/¯ but it works wonderfully now :blush:

1 Like

@GoldenChaos Since the 2.563 update the switching between command, option and control has been slower than before. Also the energy impact is a lot higher constantly, like 20-30 most of the time and before it was mostly 10 (not sure what it means tho :stuck_out_tongue:). Do you have any idea what could be it?

It's probably the dock, but if it is I'm not sure of a more efficient way to implement it. It's just a lot of small scripts, @Andreas_Hegenberg do you think the dock scripts are causing high energy impact, and what's your recommendation to fix if so?

In the meantime I'd say just disable dock badges for apps you don't use. However, in my testing I disabled almost all of them and saw no decrease in energy impact, so I'm not 100% sure that it's the dock icons causing the trouble.

@GoldenChaos Realised I was still on 2.563 so I removed that one and downloaded the latest one. All back to normal it seems. Maybe my laptop was just acting up or something. Thanks for the help tho :slight_smile:

1 Like

Ahh that was the issue, I didn't have badges enabled. Apart from this, I am still having issues with the fantastical 2 script showing, even though I have badges enabled. Things 3 is working perfectly, as well as email. Also, would you be able to add Franz integration into the dock?

I'll definitely add some sort of instruction for the stable release that says the Touch Bar dock mirrors the settings of the actual dock. Will also get Franz in :slightly_smiling_face: EDIT: Done! Will be in the next version.

Another app that might work with the mic toggle is Cisco Jabber:

if application "Cisco Jabber" is running then return input volume of ( get volume settings )

Great, got that in as well :slightly_smiling_face:

Also, not sure why but the current beta version (2.563-4) is downloading at 256.4MB!

I would not be surprised if that was the actual uncompressed size of the preset :stuck_out_tongue: this thing has more assets than some standalone apps.

Ummm...Houston, we may a situation here...

Is anyone else noticing tremendous thermal load issues as these new Dock widgets grow? I noticed my fans blowing harder than a politician last night after 2.561-4, but I was running a bunch of processes in the background and didnt think much about it. This morning I loaded 2.563-4 before doing anything else and noticed it was hot again.

Did some very quick testing (far from thorough) but it doesnt appear to be the BTT build but the loads from the script calls that are hammering my processor.

Idle state without BTT running (few background apps and processes running in normal state):

BTT 2.563 with no GC presets running - average temp low 70C after initial load:

As BTT runs and as I select the latter the script iteration, the higer the processor load and temps - up to 96C! :flushed:.

Below I ran GC preset versions from 2.555 up to 2.563-4 and recorded results. I've got to believe the process calls for all the recent badge apps are the source, but interestingly I deselected everything but Messages, Telegram, WhatsApp, and Outlook in 2.563-4 and it made little to no difference:

1 Like

There's definitely something going on, but I don't know what specifically. My system does show the Dock process consuming a lot of energy, but like you said when I disable all the dock widgets it doesn't seem to make a difference.

Argh :rage: not sure how to fix this. @Andreas_Hegenberg think you could help me with this one? Did I do something stupid with the dock that's causing resource usage to go nuts? Once this bug is fixed I think we can call it stable.

And thank you for such a thorough report @Harrumph!

(Also, only slightly unrelated, but icons still get reset on BTT restart for me. Font color choices also do not persist between copies or imports.)

Updated data points:

  • Deleted all Dock scripts from BTT and restarted. No change in CPU usage; immediate thermal spike

  • Deleted 2.563 - 4 and temps still ran at 95C for a minute plus afterwards before CPU utilization started falling

  • Reinstalled 2.563 -4 via JSON download. Now running at 85C/11% CPU utilization (2.555 at 68C/8%)

  • Disabling visibility of badge scripts did nothing to improve further. Maybe the CPU calls are elsewhere??

Switching to anything 2.555 or prior is an immediate and noticeable performance improvement.

Not sure if this helps, but I think it is related to items relying on System Events. If I switch back to 2.536-5 the system events process doesn't use too much sustained CPU on my machine. If I switch to 2.553-2 System Events becomes the highest sustained CPU usage process. The same also occurs with 2.563-4.

I'll have a look later, maybe something is being executed too often. Unfortunately in many cases it's impossible to tell why some Apple Scripts use a lot of CPU (it depends on the implementation of the specific function you call in the target app). Sometimes this can not be fixed (only by removing problematic Apple Scripts).

Partly performance issues are why the BTT app switcher doesn't show badges

Do you think it would be possible to just call the dock once in a separate widget to get all dock badges, then update the individual app widgets respectively using BTT AppleScript functions? Would that improve performance?

EDIT: So, something like this:

-- Widget UUID list
set FaceTime to "04DD7174-6674-4296-84D0-CA46DAD91871"
set Mail to "04DD7174-6674-4296-84D0-CA46DAD91871"
set Astro to "04DD7174-6674-4296-84D0-CA46DAD91871"
set WhatsApp to "04DD7174-6674-4296-84D0-CA46DAD91871"

tell application "System Events"
	tell process "Dock"
		try
			set appList to value of attribute "AXChildren" of list 1
			repeat with x from 1 to number of items in appList
				set appName to title of UI element x of list 1
				set badgeNumber to value of attribute "AXStatusLabel" of UI element x of list 1
				tell application "BetterTouchTool"
					try
						update_touch_bar_widget appName text badgeNumber
					end try
				end tell
			end repeat
		end try
	end tell
end tell

But with all the included dock item UUID's. However, when I implemented this test, the dock badge widgets do show up but only with the badge value and no other attributes; for example, tapping this unread mail widget does nothing:

Is there a way to ONLY update the text value and retain all of the other settings? I do feel like such an implementation should be a lot more performant than what I have now, but if it's just a wild goose chase let me know.