statbar
is a Linux status bar using lemonbar as a viewer, and optionally conky for clickable popups. It allows for multiple visible bars, sharing the same data sources. I use this to put a status bar on multiple monitors, where each might have the CPU usage, without having to run top
for each. Instead they share the output of one call to top
.
- Linux: There are a few Linux-specific commands. Could be modified to run on other platforms. Open an issue on github if you'd like support.
- Lemonbar: github or XFT fork.
- Conky [optional]: used as multi-line popup windows.
Fonts I'm using:
- Terminus (for text)
- icons-in-terminal for icons
Fonts are specified in src/client.c
when spawning lemonbar. Change to whatever font string you'd use.
Icons are specified in src/common.c
in set_environment
call. The icon strings are passed as environment variables to the modules and popups.
That's all that's needed for the status client itself. Individual modules may depend on certain commands being installed. But modules can be easily tailored to whatever your system uses. Or disabled (like, in the case of GPU if you have integrated graphics, or bluetooth if you don't have it).
Call statbar
to start a viewable statusbar. The data source daemon will start automatically. Call statbar
again to start another viewable bar, and it will share the same data source, without starting any more. statbar
may optionally take one argument, which is the size and position of the bar, specified like common window geometry in X11: WIDTHxHEIGHT+X+Y. This defaults to 1920x22+0+0
when unspecified.
Call statd
if you want to start the daemon manually.
default statbar:
with a few modules clicked on:
For fun, on my machine clicking the Arch logo at the end triggers a command adapted from this reddit thread that locks the screen. Currently, this script isn't shipped with statbar
Code licensed under the MIT license. See LICENSE
.
Copyright 2015 Dan Panzarella