Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.84 KB

README.md

File metadata and controls

50 lines (32 loc) · 1.84 KB

nibar

Simple Übersicht widget status bar with ↗ yabai support.

Originally forked from ↗ ajdnik/powerbar. To ↗ kkga/nibar, made to work with yabai and aesthetically tweaked. I have added a weather widget that uses the darksky API data, and removed the network stats as I don't care for them.

Planning to tweak the aesthetics to fit my system better.

Screenshot

img

Installation

Clone this repo to your Übersicht widgets directory.

$ git clone https://github.com/FraserEmbrey/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 weather widget
  • update music to work with iTunes or Spotify rather than just 'Music'
  • update styling to my preferences
  • add click control for space changes