FelixKratz / SketchyBar

A highly customizable macOS status bar replacement
https://felixkratz.github.io/SketchyBar/
GNU General Public License v3.0
5.25k stars 82 forks source link

Global Menus #488

Closed wannafedor4 closed 5 months ago

wannafedor4 commented 6 months ago

I know that there has probably been a few trillion of these issues, but I have an idea for how it could work.

The problem

So this is how accessing menu items works right now... Screenshot 2024-01-16 at 2 44 01 PM Absolutely disgusting I know

A sixty-fourth-baked solution

When you click front_app, it should show the global menu items. I don't know C, so I don't know how to do this in the code. Screenshot 2024-01-16 at 2 48 13 PM I can, however, make an example config:

# some code for the front_app
sketchybar --globalmenu front_app

Which in english is just assigning the global menu to an item sketchybar --globalmenu <item>

erics118 commented 6 months ago

This definitely can be done with Hammerspoon's hs.application:getMenuItems, for a relatively simple implementation

There are also C APIs (which Hammerspoon provides a Lua wrapper around) that can be used to directly integrate this into Sketchybar, but I'm not sure if it's necessary.

Also, Menuwhere (paid) includes basically the feature you're requesting.

Paletro (paid), and Raycast (free) have this feature, but in a different UI.

wannafedor4 commented 5 months ago

This definitely can be done with Hammerspoon's hs.application:getMenuItems, for a relatively simple implementation

There are also C APIs (which Hammerspoon provides a Lua wrapper around) that can be used to directly integrate this into Sketchybar, but I'm not sure if it's necessary.

I'll look into this...