AlexNaga / yabar

A yabai status bar widget for Übersicht

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yabar

A yabai status bar widget for Übersicht.

NOTE: I recommend using this awesome bar instead: https://github.com/Jean-Tinland/simple-bar

Features

  • Show active workspace number (with multi-display support)
  • Battery indicator
  • WiFi strength indicator
  • Connected WiFi name
  • System load
  • Date and time

TODO

  • Volume

Screenshot

img

Installation

Clone this repo to your Übersicht widgets directory with the following command.

$ git clone git@github.com:AlexNaga/yabar.git $HOME/Library/Application\ Support/Übersicht/widgets/yabar

Dependencies

Usage

There are two different widget styles. Enable one of the following widget in Übersicht.

  • yabar-main-0-jsx
  • yabar-main-1-jsx

Refreshing yabai workspaces widget

The widgets for displaying yabai workspaces aren't refreshing automatically (to preserve battery). To refresh them, you can add these lines utilizing yabai's signals at the end of .yabairc:

yabai -m signal --add event=space_changed \
    action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"yabar-workspace-jsx\"'"
yabai -m signal --add event=display_changed \
    action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"yabar-workspace-jsx\"'"
yabai -m signal --add event=application_front_switched \
    action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"yabar-workspace-jsx\"'"

About

A yabai status bar widget for Übersicht


Languages

Language:JavaScript 86.5%Language:Shell 13.5%