Skip to content
/ xbar Public

Simple Übersicht status bar with yabai support

License

Notifications You must be signed in to change notification settings

xseman/xbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks