Skip to content

kkga/nibar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

df0b730 · Apr 24, 2023

History

81 Commits
Jul 21, 2020
Sep 25, 2020
Apr 24, 2023
Jun 9, 2019
Jul 3, 2019
Oct 24, 2021
Aug 28, 2019
Oct 3, 2020
Apr 9, 2021
Mar 2, 2020
Mar 2, 2020
Jul 3, 2019
Oct 3, 2020

Repository files navigation

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.

img

Installation

Clone this repo to your Übersicht widgets directory.

# assuming your widgets are in the default Übersicht location
$ git clone https://github.com/kkga/nibar $HOME/Library/Application\ Support/Übersicht/widgets/nibar

Dependencies

  • SF Symbols (optional) — used for symbols in the statusbar widget

Usage

Refreshing yabai workspaces widget

The workspaces widget is not refreshing automatically (to preserve battery). Add these lines at the end of your yabairc to utilize yabai's signals for auto-updating the widget whenever a workspace is changed:

yabai -m signal --add event=space_changed \
    action="osascript -e 'tell application id \"tracesOf.Uebersicht\" to refresh widget id \"nibar-spaces-jsx\"'"

# if using multple displays, add an additional rule for "display_changed" event
yabai -m signal --add event=display_changed \
    action="osascript -e 'tell application id \"tracesOf.Uebersicht\" to refresh widget id \"nibar-spaces-jsx\"'"
# add these rules to auto-update the "windows" widget
yabai -m signal --add event=window_focused \
    action="osascript -e 'tell application id \"tracesOf.Uebersicht\" to refresh widget id \"nibar-windows-jsx\"'"
yabai -m signal --add event=window_destroyed \
    action="osascript -e 'tell application id \"tracesOf.Uebersicht\" to refresh widget id \"nibar-windows-jsx\"'"
yabai -m signal --add event=window_created \
    action="osascript -e 'tell application id \"tracesOf.Uebersicht\" to refresh widget id \"nibar-windows-jsx\"'"
yabai -m signal --add event=space_changed \
    action="osascript -e 'tell application id \"tracesOf.Uebersicht\" to refresh widget id \"nibar-windows-jsx\"'"

About

Simple Übersicht status bar with yabai support.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published