Hi all, I've always liked Gnome's system monitor that shows CPU utilization broken up by color into user,system,iowait. And now that as of version 3.4, awesome's graph stuff is in Lua, bringing this functionality to awesome was actually not hard.
Visual sample: http://tiker.net/tmp/multigraph.png Code is here, including usage example: http://git.tiker.net/awesome-config.git/tree Of interest therein: a) multigraph.lua -- a hacked version of Julien's awful.widget.graph. Just implements a multicolored graph widget. b) sysinfo.lua -- various system information gathering stuff, largely stolen from obvious. I think it's worth having this separate from any widgetry libraries. c) cpugraph.lua and memgraph.lua put exhibits a) and b) together to implement the graphs you see in the picture. Client side usage (see mystuff.lua): mycpugraph = cpugraph.make({ name_to_color={ user="#00ff00", nice="#00e000", system="#00c000", iowait="#00a000", }, border_color="#aaaaaa", width=30, height=19, }) widgets = { ... mycpugraph.widget } Feel free to steal/include/whatever, as necessary. GPL2 if anyone asks. Andreas
signature.asc
Description: This is a digitally signed message part.
