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

Using multiple SketchyBar helpers for multiple SketchyBar instances #2

Open
crissNb opened this issue Jun 13, 2023 · 1 comment
Open

Comments

@crissNb
Copy link

crissNb commented Jun 13, 2023

When having multiple independent instances of SketchyBar (I followed "Multiple Bars" section in the documentation), it doesn't seem like the mach server is sending the messages to the correct instance of the SketchyBar. asd

@FelixKratz
Copy link
Owner

You need to target the new bar for all operations. I.e. if your bar is named bottom_bar you need to invoke bottom_bar instead of sketchybar in every command that targets this bar, i.e.

bottom_bar --add item test left

Furthermore you will need to send the mach messages in the helper to the address of the appropriate bar, i.e. the mach port of the new bar is not

"git.felix.sketchybar",

But rather git.felix.bottom_bar, I think I will push an update to the helper with some improvements I have made for another project and will address this problem as well.

johnallen3d added a commit to johnallen3d/sketchybar-rs that referenced this issue Jan 6, 2024
SketchyBar allows for multiple bar by symlinking to `sketchybar` and
running a second process (eg. `bottombar`). In order for the helper to
find the `mach` port for the targeted bar we need to provide the bar
processes name.

FelixKratz/SketchyBar#353 (comment)
FelixKratz/SketchyBarHelper#2
johnallen3d added a commit to johnallen3d/sketchybar-rs that referenced this issue Jan 6, 2024
SketchyBar allows for multiple bar by symlinking to `sketchybar` and
running a second process (eg. `bottombar`). In order for the helper to
find the `mach` port for the targeted bar we need to provide the bar
processes name.

FelixKratz/SketchyBar#353 (comment)
FelixKratz/SketchyBarHelper#2
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