marshallbrekka / nibar

Simple Übersicht status bar with yabai support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nibar

Simple Übersicht widget status bar with yabai support.

Originally forked from https://github.com/ajdnik/powerbar. I made it work with yabai and tweaked the aesthetics to match my preference.

Screenshot

img

Installation

Clone this repo to your Übersicht widgets directory.

$ git clone https://github.com/kkga/nibar $HOME/Library/Application\ Support/Übersicht/widgets/nibar

Dependencies

  • jq — used for parsing json output and displaying the workspaces widget
    • install with homebrew: brew install jq
  • SF Fonts (optional) — used for symbols in the statusbar widget

Usage

The widgets for displaying yabai workspaces aren't refreshing automatically.

To refresh them, you can add these lines utilizing yabai's signals at the end of .yabairc:

# refresh primary display workspaces
yabai -m signal --add event=space_changed \
    action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-primary-jsx\"'"

# refresh secondary display workspaces
yabai -m signal --add event=space_changed \
    action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-secondary-jsx\"'"

TODO

  • add support for visible (not focused) workspaces

About

Simple Übersicht status bar with yabai support.

License:MIT License


Languages

Language:JavaScript 60.2%Language:Shell 39.8%