kkga / nibar

Simple Übersicht status bar with yabai support.
MIT License
192 stars 33 forks source link

Missing signals to support yabai on multiple displays #4

Closed Sayrus closed 4 years ago

Sayrus commented 4 years ago

When changing display to an already active space, yabai will not trigger the space_changed signal. However, adding the following signal will fix the problem:

yabai -m signal --add label=labi event=display_changed \
    action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-primary-jsx\"'"

yabai -m signal --add label=labo event=display_changed \
    action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-secondary-jsx\"'"

Note: This will trigger two refresh if you both change display and active space.

Sayrus commented 4 years ago

The signal for window open/close is also missing (To remove the °)

kkga commented 4 years ago

Nice, thanks for the tip! I was wondering why the bar doesn’t update when changing displays but never got to figuring it out 😅 Probably would be useful to add this info to the README.

kkga commented 4 years ago

mentioned this in the readme