Capybara is a lightweight manager for lemonbar, written in C. It will start and manage lemonbar for you, and automagically update when bspwm changes.
You'll need the following dependencies:
- lemonbar (obviously)
- xtitle
- the powerline fonts (specifically, Inconsolata for Powerline). (you might be able to get them here)
- the icomoon font (provided in this repository - install it on your system!)
- pulseaudio-ctl (needed for volume)
- mpc and a MPD server (optional, only if you want the bar to display MPD info)
Then, compile!
$ gcc barm.c -o barm
If you don't want pulseaudio or mpd support, there are compile flags for that. If you want to change the font, go edit the source yourself.
$ gcc barm.c -o barm -DNO_PULSEAUDIO -DNO_MPD
Then, run it!
$ ./barm
It should automagically update window title, current desktop (of focused monitor), load, and time. If you want it to update instantly, send it a SIGUSR1 (this is needed if you want instant updates for volume, etc):
$ kill -USR1 `pidof barm`
You don't (at least not yet). It should be programmed intuitively enough for you to just dive in and make changes. Patches welcome.
You probably don't have exactly the same screen as me. Change this line:
if ((barfp = popen("lemonbar -g 1890x20+15+10...
Specify your own dimensions to lemonbar (after the -g option).
I'd love it if you'd tell me. Feel free to report an issue on GitHub.