Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup example for multiple displays with aerospace showing individual bars for each monitor #661

Open
fcaraujo opened this issue Dec 15, 2024 · 1 comment

Comments

@fcaraujo
Copy link

Hey,

Thanks for providing this fantastic tool; I'm really enjoying using it.
However, I'm still learning how to configure it, and as I'm not familiar with it, I'm still struggling to find an example that would suit my needs or whether it's even possible to achieve it. P.S.: forgive me if there's any topic/issue already in place that I could not find... : )

TL;DR When I use my secondary display, I wanna have its own bar showing specific/extra items and prob with diff colours of my main display, such as:
Display 1: label/icon-left | current_app (notch) volume | clock
Display 2: label/icon-right | current_app | extra cool stuff that can be displayed | volume | clock

Also, I'm happy to help improve the docs, cos it states "per display config", and unless I'm missing something, it doesn't provide any small boilerplate to guide newbies in this endeavour that's a bit more advanced.

Full long-winded version:

I usually use a secondary monitor, and I'd like to leverage that extra space to show things that would not fit on my primary monitor.

I don't mind starting really simple, so my built-in laptop monitor (let's say on my left) would have some important items, trying not to clutter much, and its first item would have a label calling it left (or imagine a special icon - just to debug/specify I have a diff bar instance for each monitor):
"left" | apple_icon | current_app ...(spacer)... playing_music (notch)volume ...(spacer)... wifi | battery | clock/calendar

In the future, I might try smth fancy and redraw it once any secondary monitor is detected, moving things around, etc - but I don't wanna overcomplicate things and mess much with events now.

So my secondary display would have some in-common/shared items, but its first label would be the right marker/icon:
"right" | app_icon | aerospace | current_app ...(spacer)... (weather, monitoring stats for CPU/Disk/etc, my microphone status, Wifi's SID/IP/average speed - any other interesting thing you may think, it's only for example purposes really) some_backgroun_services (when they're running, such bitwarden, karabiner, etc) | some_reminders (or TODO list for the day) | volume | battery | clock/calendar

Maybe it would be nice to have all this extra info shown in a clickable icon/pop-up on the primary display, to keep things clean since there's not much available space (but that would prob be a different topic and I'd try to learn myself when I'd be a bit more experienced in the tool).

Appreciate all your support

@FelixKratz
Copy link
Owner

There are two properties you want to look at for display or space specific configuration of the bar:

  1. Display certain items only on specific displays:
    Use the display property of the item. E.g. sketchybar --set apple_icon display=active shows the apple_icon item only on the currently active display. Furthermore, sketchybar --set aerospace display=2 shows the aerospace item only on display 2. Additional arguments can be found here: https://felixkratz.github.io/SketchyBar/config/items#geometry-properties

  2. Display certain items only on specific mission control spaces:
    Use the space property of the item just as for the display property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants