Jean-Tinland / simple-bar

A yabai status bar widget for Übersicht
https://www.jeantinland.com/toolbox/simple-bar
MIT License
1.21k stars 129 forks source link

Multi monitor top offset gap #297

Closed rchrdw closed 11 months ago

rchrdw commented 2 years ago

I'm having an issue where the bar is aligned with the menu bar for either the built in display or the external monitor, not both.

When the widget is top aligned to the menu bar with the built in display, there is a gap between the menu bar and the menu bar on the external display. If I refresh the widget from the external monitor, it is aligned with the menu bar on the external but goes into and behind the menu bar on the built in display.

How do I configure the alignment on both the built in display and external monitor so that they are both aligned with the menu bar?

Jean-Tinland commented 1 year ago

I'll have to make some tests with an external monitor, I'll keep you updated soon!

emilehiot commented 1 year ago

Hello,

I'm sorry to resurrect this old post, but I am encountering the exact same issue with simple-bar not being detected on my external screen connected to my MacBook Pro M2. Have you found a solution since?

Thank you in advance.

RESOLVED:

In the .yabairc config file, add the following:

yabai -m config external_bar all:28:0

This will create a space at the top of all spaces that can accommodate your simple-bar without being overlapped by windows, even on an external screen :)

Excerpt from the yabai documentation:

external_bar [<main|all|off>:<top_padding>:<bottom_padding>]

      Specify top and bottom padding for a potential custom bar that you may be running.
      main: Apply the given padding only to spaces located on the main display.
      all:  Apply the given padding to all spaces regardless of their display.
      off:  Do not apply any special padding.