Giter Site home page Giter Site logo

amar1729 / nerdbar.widget Goto Github PK

View Code? Open in Web Editor NEW
43.0 4.0 6.0 20.86 MB

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

License: GNU General Public License v3.0

CoffeeScript 28.76% Shell 64.63% CSS 6.61%
kwm ubersicht-widget nerdbar chunkwm widget yabai

nerdbar.widget's Introduction

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

nerdbar.widget's People

Contributors

amar1729 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nerdbar.widget's Issues

add support for yabai

Update spaces.sh to work with yabai, since chunkwm has been deprecated by the author.

Spaces with chunkwm

Is it possible for the spaces feature to support chunkwm? I tried to edit spaces.sh etc to call on /usr/bin/local/chunkc instead of kwmc but that didn't work. I don't really know what I'm doing so past that I don't have any other ideas.

Make current space look better

Want to eventually make the current space be identified with slight shading (as opposed to surrounding parentheses) similar to lots of the polybar setups I've been seeing recently.

example

This requires messing with the padding of the string returned from spaces.sh and figuring out the best way to have a focused-space.coffee assign an overlay coloring, since spaces.sh currently returns the space mode and list of spaces.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.