FelixKratz / SketchyBar

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

notch_display_height configuration #513

Closed net closed 1 week ago

net commented 9 months ago

I'm using SketchyBar only on the top left, and using the native macOS menu bar on the right. I have styled SketchyBar to match perfectly with the macOS menu bar.

Screenshot 2024-03-04 at 11 18 12

On displays with a notch, the native macOS menu bar is taller than usual (with my display and scale, 42px). This means that, when using multiple displays along side a notched display, to match, SketchyBar needs to be shorter on non-notched displays and taller on notched displays.

notch_offset doesn't fully help with this, as the issue is the height of the bar itself, not its y-offset. This is what using notch_offset accomplishes:

Screenshot 2024-03-04 at 11 38 56

You can see the top of the macOS menubar peeking through on the left.

What would be great is a notch_display_height property that would set the height of the bar only on notched displays.

OJFord commented 7 months ago

If you're using yabai consider making it transparent to stop the peeking.

But 👍🏻, I would like a shorter bar when possible (i.e. no notch to make it look weird) too.

net commented 7 months ago

@OJFord the right side of my bar is the native menu bar, so setting menubar_opacity wouldn't help in my case.