For updates about the lack of updates:
click
click
.
A small CPU load widget for the Awesome wm, based on IceBrain's Active
RAM Widget (http://awesome.naquadah.org/wiki/Active_RAM). Unlike some
other load widgets, This one doesn't spawn any new processes or
require any widget libraries (just the ones that come with awesome).
Add to rc.lua, near the top but after the library imports:
function cpuload()
for line in io.lines('/proc/loadavg') do
return string.sub(line, 0, 4)
end
end
cpuinfo = widget({ type = "textbox", align = "right" })
awful.hooks.timer.register(5, function() cpuinfo.text = cpuload() end)
Look for the "mywibox[s].widgets" definition and add the new "cpuinfo"
one. I suggest putting it after the textclock:
mywibox[s].widgets = {
...
mytextclock,
cpuinfo,
...
}
Generated Wed, 08 Feb 2012 06:47:09 +1100
Copyright © 2002-2011 Dylan Leigh.
[HTML 4.01 Transitional]