Sunday, July 25, 2010

Xmobar 0.11.1 on Ubuntu Lucid Lynx 10.04

The latest version of xmobar (0.11.1) seems to work fine on 10.04, you just need these two packages: libghc6-parsec3-dev and libghc6-stm-dev. Then follow the instructions.

Here is my .xmobarrc in case you are lazy (requires xfonts-jmk):

Config { font = "-jmk-neep-medium-*-semicondensed-*-11-*-*-*-*-*-iso8859-15"
       , bgColor = "black"
       , fgColor = "white"
       , position = Bottom
       , lowerOnStart = True
       , commands = [ Run Weather "KIAD" ["-t","<skyCondition> * <rh>% * <tempF>F","-L","55","-H","90","--normal","green","--high","red","--low","lightblue"] 36000
                    , Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red","-m","7"] 10
                    , Run Network "lo" ["-L","0","-H","32","--normal","green","--high","red","-m","7"] 10
                    , Run StdinReader
                    , Run Cpu ["-t","Cpu: <total>","-L","0","-H","50","--normal","green","--high","red"] 10
                    , Run MultiCpu ["-t","Cpu: <total0> <total1> <total2> <total3>","-p","3"] 1
                    , Run TopProc [] 20
                    , Run Memory ["-t","Mem: <usedratio>% * Cache: <cache>M","-m","4"] 10
                    , Run Swap [] 10
                    , Run Com "uname" ["-s","-r"] "" 36000
                    , Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
                    ]
       , sepChar = "%"
       , alignSep = "}{"
       , template = "%StdinReader%  |  <fc=#9999FF>%multicpu%</fc>  |  <fc=#99FF99>%memory% * %swap%</fc> |  <fc=#ffd700>%eth0% * %lo%</fc>  | %top% }{ <fc=#ee9a00>%date%</fc> | %KIAD% | %uname%"
       }

Screenshot:

Be the first to reply!

Post a Comment

By submitting a comment you assert that it is your own original work and agree to grant a non-exclusive licence to Brandon Thomson to display it on log.bthomson.com.