xseman / xbar

Simple Übersicht status bar with yabai support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xbar

Simple Übersicht widget status bar with yabai support.

Originally forked from https://github.com/kkga/nibar

Features

  • Show workspace number & current space (one display)
  • OnClick switch spaces (interaction shortcut must be enabled)
  • Show current app name & title
  • Date and time

Screenshot

img

Installation

Clone this repo to your Übersicht widgets directory.

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

Dependencies

  • 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

Refreshing widgets with yabai

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\"'"

About

Simple Übersicht status bar with yabai support

License:MIT License


Languages

Language:JavaScript 84.0%Language:Shell 16.0%