Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkga/nibar
Simple Übersicht status bar with yabai support.
https://github.com/kkga/nibar
macos statusbar ubersicht ubersicht-widget yabai
Last synced: about 17 hours ago
JSON representation
Simple Übersicht status bar with yabai support.
- Host: GitHub
- URL: https://github.com/kkga/nibar
- Owner: kkga
- License: mit
- Created: 2019-07-03T21:15:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-24T18:50:34.000Z (over 1 year ago)
- Last Synced: 2024-05-09T17:16:14.949Z (6 months ago)
- Topics: macos, statusbar, ubersicht, ubersicht-widget, yabai
- Language: JavaScript
- Homepage:
- Size: 8.28 MB
- Stars: 190
- Watchers: 6
- Forks: 33
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# nibar
Simple [Übersicht](https://github.com/felixhageloh/uebersicht) widget status bar with [yabai](https://github.com/koekeishiya/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](./ss.png)
## Installation
Clone this repo to your Übersicht widgets directory.
```bash
# 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](https://developer.apple.com/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](https://github.com/koekeishiya/yabai/wiki/Commands#automation-with-rules-and-signals) for auto-updating the widget whenever a workspace is changed:
```sh
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\"'"
``````sh
# 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\"'"
```