Add Menubar item right after an Application's menu

I’d like to add an additional menu item or floating menu to the menubar but I want to add it right after the App’s default menu items end i.e. on the left right after the Help menu — and not towards the right side.

image

Is there a a way to achieve this?

I do realise this might not be supported by the OS but even if I have to use pixel/percentage values to place a floating menu, that could still work. I plan to use it for specific sites using CAGs like showing a few additional shortcuts when Figma is open in Safari (so the position of menu items will always be the same for one CAG).

The reason I’d rather not have those items on the right side where other menu items live is my 27inch screen which always has the actively used app on the left side — right side reserved for lesser used comms apps like Slack.

I think you can do it with Floating Menus (which have "Window level" == "Maximum Float On Top (Even Over Menu Bar) (2147483631)"), not sure if with Menubar item it is possible. However since most of the apps have different menubar items/different length you should create separate floating menus (even if they are actually the same) with different offsets if you plan to have similar menus for different apps, if it is only Safari I guess 1 will be enough:

I have recently implemented a new anchor for floating menus called "Menu Bar Menu Items", which would allow for this, however it is not yet exposed in the UI. I'll do that soon.

@xidiot Thanks, that makes sense and that’s what I’m using for now.

@Andreas_Hegenberg Thanks! That seems like it’d be perfect for my usecase.

BTW are you aware of any issues with showing floating menus using CAGs? Right now I’ve configured one to show shortcuts for Figma using the Active Website URL for the condition. I’m not able to make it work as expected when switching to a Figma tab. It works if I switch from a different app back to Safari but when I switch tabs within Safari, the menu doesn’t show up at all. (sorry if this is deviating too much, I can log a bug report for this).

5.717 adds a new positioning option "Focused Screen's Menubar Items" :slight_smile:

Here is an example preset that adds two items right of the menubar items:
menubar_example.bttpreset (16.7 KB)

I'll check your Safari issue.

2 Likes

Lovely! Works perfectly! Took me about 10 minutes to replicate the default menu font size and spacing but now it looks really native. I’m showing a custom context menu on click which seems to be clipped behind the floating menu. That should be expected with the high z-index but being able to offset the context menu would be useful.

1 Like

you can set the menu‘s z-index to anything higher than 25, I think there are levels higher than the meubar but lower than the context menu.

However an offset/anchor option would still be a good idea for the context menu