nerdbar.widget
nerdbar.widget copied to clipboard
A nerdbar widget (loosely based off herbischoff's) for use with yabai/chunkwm/kwm.
zenbar
maintenance
This is a side project of mine, so it may not have everything to suit your needs. Some other neat bars for macOS:
- https://github.com/Jean-Tinland/simple-bar
- https://github.com/apierz/chunkbar.widget
- https://github.com/blaadje/fancyBar
- https://github.com/zzzeyez/Pecan
- https://github.com/ahmadassaf/gaudiBar.widget (this one is also a helpful resource for extensible uebersicht widgets)
zenbar widget
- Works with both
kwmandchunkwm - Dynamically changing colors (based on wrapper script around pywal)
- Displays
bsp/float/[n/m](monocle mode) - List of spaces, with active one highlighted with color
- Name of focused window
- ~~Currently-playing song~~ won't work since Firefox extensions can't write to filesystem anymore
- cpu/mem info
- Battery percentage remaining (including whether it's charging)
- Date and time
Space 1 or 2:

Difference between charging and not charging:

Dynamic Color Changing
This works by caching a colors.sh file as colors_<desktopID>.sh for each different desktop.
The easiest way to do this is using my scripts wp and unique_space.sh. They are meant to be copied into your ~/.bin/ and called manually as a replacement for pywal when you want to change your wallpaper. See wp -h for usage.
Each desktop has its own cached file, and theme.coffee and focused-window.coffee load from it every 1s.

My Changes
- Changed the kwm/chunkwm active space information to a color box rather than parentheses (see screens)
- Added dynamic color loading/changing (for use with pywal, themer, etc)
- Added bolt symbol near battery to indicate when charging (font-awesome currently (Jan 2017) has no charging battery symbol) - see screenshots
- Changed font to monospace and increased the size in certain areas for important text
- Modified widget spacing
Previous Work (as of 03/20/17)
- Herrbischoff's original nerdbar, inspired by koekeishiya's NerdTool configuration
- koekeishiya's modified nerdbar (kwm/khd author)
- added
active-spacewidget - added support for font-awesome icons
- improved querying to kwmc
- fixed now playing:
playing.coffee, which uses Firefox plugin CurrentSong to also display the currently-playing song in the bar
- added
- deathbeam's modified nerdbar, which made the following additions:
- modifed
focused-windowto include current/total spaces (very helpful) - ellipsis cutoff if focused-window title is too long
- modifed
Installation
Make sure you have Übersicht installed, and then clone this repository.
IMPORTANT: Make sure you name the resulting folder amar-bar.widget, or change the image paths in background.coffee and focused-window.coffee, since they source css and scripts (respectively) starting with the parent directory's name.
# or wherever your ubersicht looks for widgets (mine looks in ~/.config/ubersicht/widgets/)
git clone https://github.com/Amar1729/nerdbar.widget $HOME/Library/Application\ Support/Übersicht/widgets/amar-bar.widget