kkga / nibar

Simple Übersicht status bar with yabai support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing signals to support yabai on multiple displays

Sayrus opened this issue · comments

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.

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

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.

mentioned this in the readme