Simple Übersicht widget status bar with yabai support.
Originally forked from https://github.com/kkga/nibar
- Show workspace number & current space (one display)
- OnClick switch spaces (interaction shortcut must be enabled)
- Show current app name & title
- Date and time
Clone this repo to your Übersicht widgets directory.
git clone https://github.com/xseman/xbar $HOME/Library/Application\ Support/Übersicht/widgets/xbar
- SF Fonts (optional) — used for symbols in the statusbar widget
- jq — used for parsing json output and displaying the workspaces widget
- install with homebrew:
brew install jq
- install with homebrew:
Wigets titlebar.jsx
and spaces.jsx
aren't refreshing automatically (performance reasons).
To refresh them, you can add these lines utilizing
yabai's signals
at the end of .yabairc
:
# spaces
yabai -m signal \
--add event=space_changed \
action="osascript -e 'tell application id \"tracesOf.Uebersicht\" to refresh widget id \"xbar-spaces-jsx\"'"
# title-bar
yabai -m signal \
--add event=application_front_switched \
action="osascript -e 'tell application id \"tracesOf.Uebersicht\" to refresh widget id \"xbar-titlebar-jsx\"'"
# title-bar
yabai -m signal \
--add event=window_title_changed \
action="osascript -e 'tell application id \"tracesOf.Uebersicht\" to refresh widget id \"xbar-titlebar-jsx\"'"