[Xmonad] Statusbar gadgets: cpubar

Robert Manea rob.manea at googlemail.com
Mon Jun 18 04:07:20 EDT 2007


Hi.

Just in case anyone is interested here is another gadget for your dzen
statusbar, a cpu usage meter.

It was designed to work with Linux and relies on the existance of
"/proc/stat".

Usage: cpubar [-c <charcount>] [-s <symbol>] [-i <interval>]

With:
        charcount = number of chars to be considered 100%
                    (defaults to 25)
        symbol    = a single character representing the corresponding
                    percentage value (defaults to '=')
        interval  = update interval in seconds (defaults to 1)


Used with dzen it could looks like this:
    http://omploader.org/file/xmonad-cpubar.png

Grab cpubar here:
    http://gotmor.googlepages.com/cpubar.c


The commandline for the above shot:
    cpubar | \
        dzen2 -bg '#aecfaa' -fg black -w 235 -ta l \
        -fn '-*-profont-*-*-*-*-11-*-*-*-*-*-iso8859' \ 
        -x 350 -e 'button1=exec:uterm -e htop'



Have fun, Rob.


More information about the Xmonad mailing list