[Xmonad] xmobar 0.8-rc1

Andrea Rossato mailing_list at istitutocolli.org
Sat Nov 3 09:43:13 EDT 2007


Hi,

I'm going to release Xmobar-0.8 shortly and so, with the hope to have
some more testers, I'm making this release candidate:

http://code.haskell.org/~arossato/xmobar/xmobar-0.8-rc1.tar.gz

NOTE: xmobar-0.8-rc1 requires X11-1.3.0 from hackage.

There are a lot of changes since the last release. The main include:

a. Configuration:
   - removed xPos, yPos, width, height, align, and refresh
     configuration options;
   - added position and alignSep configuration options: the first is
     used to set the position (Top, Bottom or Static; the second to
     set the characters to be used to separate, in the output
     template, text that must be aligned to the left, centered, or
     aligned to the right;

   (please have look at xmobar.config-sample)

b. Plugins:
   - added a plugin to read Unix named pipe (useful to display XMonad
     logs);
   - added a plugin to read from standard input;
   - a new plugin API makes it possible to write plugins that perform
     asynchronous actions. The new API is totally backward compatible;

c. Output template:
   - it is now possible to align text in the output template. By
     default text before a '}' will be align to left, the text in
     between '}' and '{' will be centered, and the text after a '{'
     will be align to the right, like:
     "left } centered { right"
   - strings can have also a background color set:
     "<fc=red,white>%date%<fc>"
     will display the output of the "date" command in red with a white
     background.

d. Concurrency: now xmobar uses Software Transactional Memory and the
main window is updated only when needed

e. Documentation: I now use Pandoc for the README, this way I have
also created an HTML version of. I hope that makes the documentation a
bit more accessible:
http://code.haskell.org/~arossato/xmobar/

f. The darcs repository has been moved to:
http://code.haskell.org/xmobar

g. XRandR: since positioning is now done automatically, XRandR should
be supported too, even thought support could be buggy due to the fact
that I cannot actually test it, since I don't have capable hardware.

h. Many other small changes and code cleanup: darcs changes will tell
you everything.

I would really appreciate if you could report back any issue you may
discover.

Thanks to Krzysztof Kosciuszkiewicz, Spencer Janssen, Jens Petersen,
Dmitry Kurochkin, and Lennart Kolmodin for their help and their
patches.

Andrea

PS: This is my ~/.xmobarrc

Config { font = "-bitstream-charter-*-r-normal-*-10-*-*-*-*-56-*-*"
       , bgColor = "black"
       , fgColor = "grey"
       , position = Top
       , commands = [ Run Weather "LIPB" ["-L","18","-H","27","--normal","green","--high","red","--low","lightblue"] 36000
                    , Run Network "eth1" ["-L","0","-H","32","--normal","green","--high","red"] 10
                    , Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
                    , Run Memory ["-t","Mem: <usedratio>%"] 10
                    , Run Battery ["-L","50","-H","75","--high","green","--normal","yellow", "--low", "red"] 10
                    , Run Swap [] 10
                    , Run Com "uname" ["-s","-r"] "" 36000
		    , Run Date "%a %b %_d %Y * %H:%M:%S" "mydate" 10
		    , Run PipeReader "/home/andrea/.xmonad-status" "xlog"
                    ]
       , sepChar = "%"
       , alignSep = "}{"
       , template = "%xlog% }{ %cpu% | %memory% * %swap% | %eth1% | %LIPB% | <fc=orange>%mydate%</fc> | %battery%"
       }



More information about the Xmonad mailing list