FelixKratz / SketchyBar

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

Act like default menu bar #339

Closed alapidas closed 1 year ago

alapidas commented 1 year ago

I'd like sketchybar to sit at the top of the screen above (not layered on top of) windows, just like the default menu bar. Setting topmost=true layers it on top, which is not what I want. Keeping the OS menu bar visbile and setting topmost=true sort of does this, but it feels clunky, and unless you make it the same height as the default menu bar, it doesn't look exactly right.

FelixKratz commented 1 year ago

Could you specify what exactly you mean? Do you want to prevent windows from going below the bar?

alapidas commented 1 year ago

Apologies if I am not being clear.

I'd like the sketchybar to effectively replace the default menu bar - in particular, the part that doesn't really work the same today is when you maximize a window, it covers the bar (or if you set topmost=true the bar covers the topmost part of the window)

FelixKratz commented 1 year ago

Ah I see now. I have already pondered a bit in the apple private frameworks to see if there is an API function for this some while ago. It seems a process with user permissions is not able to set this „blocked“ area for windows.

In a way it is the default macOS window manager that falls short here. A solution to achieve what you want is to use an external tool that is able to manage windows. There are several tools with which you can extend the vanilla window management to be more configurable.

While I certainly could do that in sketchybar itself I think it is better to keep from modifying window positions (thats the responsibility of the window manager).