Bartender controversy, tutorial on how to manage menubar status items via BTT

do you have an external display connected or just your "notch display"?

Right now, just the notch laptop. I'll go connect to the external monitor in my office in a few.

Ok thanks! I'll think about why the sorting wouldn't work correctly then - thought it might be related to an external display. It should handle items like istat's correctly, probably a small bug in my sorting logic.

Yes - it 'feels' like iStat is treating the floating as another, different display maybe. That 'combine' logic that it has seems to be 'off' in the floating window, but on in the main menubar maybe?

I figure it out. There is a setting in BetterMouse to narrow the gap between icons. Tick it off and everything works fine now.

@ern, very strange, I'll try to reproduce. Could also be coincidence maybe.

Further more - trying to click on any of the istat tools in the floating menu = nothing and the floating window disappears. Usually istat pops down a menu (was going to try to see if the 'settings' for istat were different when invoked from popup than the menu proper.

My iStat Menu works fine with v4.603. One click calls a pop down menu.

For you, not for I. I wonder what our configuration differences are?

When I bring up the floating menu, my iStat menu items are all to the left (and the < icon has moved there too?) they don't mirror their location in the main menu bar. I suspect this indicates something

Ah yes, then I think I know what's the issue! I'll work on fixing this.

1 Like

I haven't had time to test this latest alpha version on both devices yet (MacBook Air, Mac mini and display). What I do notice on the Mac mini and Display is that when BTT is installed, I have very erratic cursor behavior. If I move the cursor to the top of the display, for example to select BTT or some other menu item, it disappears and reappears at the bottom right (where Notes pops up if you have that feature configured in Notes). But it never leaves that areas. If I move it entirely to the bottom right, it sort of reappears at the top, but not really. And it randomly disappears and reappeared at unpredictable locations on the screen.

Again, this ONLY happens when BTT alpha is installed.

It sort of reminds me of Universal Control -- when you move your cursor offscreen it reappears on the other device. I have used that between the mini and the MacBook Air. I'm sure that's not what's happening here. The MBA is not awake, has been closed for hours. And the behavior is not the same -- for Universal Control you move the cursor to the left or right edge, not the top, etc.

that should be a bit better on the latest alphas - there was a little bug in the mouse moving logic. There is still one issue where the mouse cursor might hide, this will be resolved with the next alpha.

To explain: There are no usable API's for managing menubar items of other apps (anymore). So what Bartender and other apps do is to simulate mouse events to move items around. To do this, it's necessary to figure out the locations to move to (and use various tricks to move them to hidden sections, etc. ... it is really tricky) . Also it needs to happen pretty fast so a user won't notice the mouse movement.

2 Likes

Amazing! I'm sure you'll clear this up. Great work, Andreas!!!

FWIW - I'm sometimes running an 'over-under' monitor configuration with my large un-notched display over, and laptop w/ notch of doom, under it. Getting the mouse to 'register' as being at the 'top' of the laptop screen is dicy at best. I understand that's just a challenging trigger regardless, but thought I'd say 'hey' on this.

Also FWIW - latest versions still, the iStat menus don't respond in the floater.

Just an FYI/Up To Date thing. Keep up the happy hacking.

1 Like

yes I’m also using such a setup with a slightly different way for activating the bar - one that doesn’t require moving to the exact top. I’ll share that soon

You can also use any other trigger, eg double clicking the menubar

1 Like

'twas my eventual evil plan! I have to say, I've used BTT since the very early days (initially to get my Wii controllers to work as input for some psychophysical experiments) and rarely have I delved into its ever increasing power :slight_smile: You've stayed busy!

Agreeing as well that I miss this. Is some version of this implementable in BTT?

I was away for a week. Now back working on this, @flipphillips could you check whether iStat menus is ordered correctly with v4.607 alpha?

2 Likes

Here is an example preset with a bigger "hover area", making it easier to target on "over-under" monitor setups:
floating_status_item_bar_bigger_hover_area.bttpreset (55.7 KB)

It's achieved by having an invisible & non-interactable floating menu positioned over the status items. It has a "On Hover" and "On Hover End" action assigned to show / hide the status item bar.

1 Like

So. I'm not 100% sure :slight_smile: There's no there there.