Amar1729 / nerdbar.widget

A nerdbar widget (loosely based off herbischoff's) for use with yabai/chunkwm/kwm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

zenbar widget

  • Works with both kwm and chunkwm
  • 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: Screenshot Screenshot

Difference between charging and not charging: Screenshot Screenshot

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. Gif

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-space widget
    • 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
  • deathbeam's modified nerdbar, which made the following additions:
    • modifed focused-window to include current/total spaces (very helpful)
    • ellipsis cutoff if focused-window title is too long

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

About

A nerdbar widget (loosely based off herbischoff's) for use with yabai/chunkwm/kwm.

License:GNU General Public License v3.0


Languages

Language:Shell 64.6%Language:CoffeeScript 28.8%Language:CSS 6.6%