FelixKratz / SketchyBar

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

Dynamic padding for yabai for different screens #432

Closed BishBish123 closed 9 months ago

BishBish123 commented 9 months ago

Hello there, big fan of sketchy bar and fyabai. I just started using it for a few days now, but I hit an issue where yabai tiles over the sketchybar when switching from macbook screen to monitor (the notch on the 14-inch macbook pro is set up differently from a normal monitor). When I increased top padding to work for monitor, it did work but now there is a gap on the macbook screen. here are screenshots of what I mean:

top padding 6 (default): mac:

image

monitor image

top padding 45:

mac:

image

monitor: image

Is there a way to get yabai to dynamically pad depending on screen or is there a way for sketchybar to include itself as a window to be tiled in yabai? Thank you.

FelixKratz commented 9 months ago

This is exactly what

yabai -m config external_bar all:35:0

does. It creates room for SketchyBar at the top, which is the same on all displays.