Issue 34 in xmobar: Config file as actual code?
xmobar at googlecode.com
xmobar at googlecode.com
Wed Dec 8 07:16:27 EST 2010
Updates:
Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low
Comment #1 on issue 34 by jaortega: Config file as actual code?
http://code.google.com/p/xmobar/issues/detail?id=34
I guess you mean something similar to what xmonad does: compile
the "configuration" file to create the actual xmobar executable. That'd be
interesting, but, unlike xmonad, xmobar does not have a good default
configuration to use for people installing just the binary (from, say, a
Debian package) and do not want to install ghc. Including ghc's runtime in
the binary would bloat xmobar, which is intended as a lightweight monitor.
The way to do what you want is to write a plugin. One of the things i'd
like to do in the future is to make plugins more flexible (ideas welcome!),
but even as they stand now they're quite usable (provided you don't mind to
recompile xmobar yourself), and i think you'll have no problem in doing
what you want in a plugin.
The plugin system is described in the README, but i'll be happy to provide
any needed clarifications and improve the documentation.
Thanks!
More information about the Xmobar
mailing list