2 -- Copyright (c) 2007, Bart Trojanowski <bart@jukie.net>
4 -- Simple load applet for wmii bar.
6 -- NOTE: dstat is required.
8 local wmii
= require("wmii")
9 local os
= require("os")
15 widget
= wmii
.widget
:new ("800_dstat_load")
16 wmii
.add_exec ("TERM=vt100 dstat --load --nocolor --noheaders --noupdate 1",
18 if not (type(line
) == "string") then
22 local line
= line
:gsub ("%W%W+", " ")
23 if line
:len() > 3 then