aboutsummaryrefslogtreecommitdiff

Statusbar script

This is a small set of C files that writes the current ethernet status, battery level and date in "%F %R" format to standard out.

Compiling

To compile the status and controller programs, run

cc -g -lrt status.c -o status
cc -g -lrt status_ctl.c -o status_ctl

Usage

Run the status script as part of your WM init, my fork of dwl reads status from stdin, so I run dwl like ./status | dwl.

To manually update an element, run ./status_ctl update <ELEMENT>. ELEMENT can be one of the elements defined in config.def.h, or all to update every element.

You modify config.def.h to change which elements and in which the order they're shown, as well as how often they're automatically updated.

The status_ctl script is neat to update elements on events, eg. when you connect to wifi or change the volume or brightness of your monitor.