simple status monitor for dwm

oblivion ae58fb39d3 add ram 4 years ago
modules ae58fb39d3 add ram 4 years ago
.gitignore ae58fb39d3 add ram 4 years ago
Makefile 6cb4683766 separate files & cpu usage 4 years ago
README 6cb4683766 separate files & cpu usage 4 years ago
config.def.h 6cb4683766 separate files & cpu usage 4 years ago
config.h ae58fb39d3 add ram 4 years ago
status ae58fb39d3 add ram 4 years ago
status.c ae58fb39d3 add ram 4 years ago

README

So:

in short this is a program to concatenate the output of user-defined functions to a user-defined string layout and pass it to set_status().

Like everything else set_status() is user-defined, so you could print the string to stdout, ooor set X root window name using Xlib.h.

For building your config.h there is a simple template in config.def.h. If you're lazy, my personal config is in config.h all you need to do is replace the network devices and batteries with your own.

Must be defined:
* Arg struct in modules/status.h
* Layout layouts[] in config.h
* set_status(char *) in config.h
* update_arg(Arg *) in config.h

Default layout:

" down: (download kB/s) up: (upload kB/s) cpu: (cpu usage %) battery: (battery %) time: (current time) "