I've added some documentation tp /usr/local/share/wmzmon.txt. Also wmzmon.xpm is a little bit more commented as well.
Quoted here for your convenience
Introduction
------------
Wmzmon is a customisable dockable system monitor created for WindowMaker
running on Sharp Zaurus.
The available charts are:
cpu usage
cpu usage in the form of diagram
battery status
memory usage
swap usage
sound volume
SD and CF card
current date and time
Wmzmon also allows you to change sound volume and mount/unmount SD/CF cards
Each layout (template) can have two variants: normal and alternative.
Invocation
----------
Execute "wmzmon --help" command to get a list of available options.
Interface
---------
Default layout is Default alternativelayout is
+----------------------+----+ +---------------------------+
| CPU Load |Grip| | Date |
| Memory Usage +----+ | Time +----+
| Swapfile Usage | S | | Battery Status | S |
| Battery Status | o | | Memory Usage | o |
| CPU Graph | u | | Swapfile Usage | u |
+----------+-----------+ n | +----------------------+ n |
| SD | CF | d | | CPU Graph | d |
+----------+-----------+----+ +----------------------+----+
To switch between normal and alternative layouts click the middle "mouse"
button on wmzmon graph.
To mount SD/CF cards you can click on corresponding rectangles.
Grip can be used to drag the wmzmon icon (or just Alt+Click anywhere
on the icon).
Click on top/bottom half of the "Sound" chart to increase/decrease
sound volume.
Customisation
-------------
To change layout you can either supply new one with -t command-line option or
edit the ~/.wmzmon.xpm file.
Since it is just XPM file it can be edited with editor. It's recommended to
manually edit a template because its format is fairly simple and you will not
lose any detail in that way.
Notes on sections (see /usr/local/share/wmzmon.xpm or ~/.wmzmon.xpm for more
detail):
*Legend of colors* contains colors for monitored values
*Template* is a template. You can "draw" here with letters from previous
section. Wmzmon detects rectangle bounds by extreme points, so theoretically
you can supply only top-left and right-bottom point. Although it may be too
unclear :)
*Parameters* is a container for wmzmon parameters.
wmzmon.xpm:
/* XPM */
static char * wmzmon_xpm[] = {
/* ----- IMAGE INFORMATION ----- */
/* width height ncolors chars_per_pixel */
"48 48 20 1 0 0 XPMEXT",
/* ----- LEGEND OF COLORS ----- */
/* format:
* c s
* is either name or #RRGGBB value
* you can change only and
* please DONOT change the order of symbolic names and DON'T remove them!
* If you need more colors append them to the end*/
/* Processor colors */
"P c Red s CpuSystem",
"p c Green s CpuUser",
/* Memory colors */
"M c Red s RamUsed",
"u c BlueViolet s RamBuffers",
"c c Magenta s RamCached",
/* Swap colors */
"S c Red s Swap",
/* Battery colors */
"B c Cyan s BatteryOk",
"b c Gray30 s BatteryCharging",
/* SD Card colors */
"D c Blue s SdMounted",
/* CF Card colors */
"F c Blue s CfMounted",
/* Sound volume */
"V c Gray30 s SoundVolume",
/* CPU Graph colors */
"G c Red s CpuGraphSystem",
"g c Green s CpuGraphUser",
/* Date and time */
"I c Black s TimeForeground",
": c Gray50 s TimeBackground",
"A c Black s DateForeground",
"- c Gray50 s DateBackground",
/* Decorations colors */
". c Gray50 s Background",
/* You can move an icon without a grip with Alt + mouse combo */
"R c Gray s Grip", /* actual color doesn't matter */
"+ c Black s Fill",
/* ----- TEMPLATE ----- */
"................................................",
"..++++++++++++++++++++++++++++++++++++...RRRRRR.",
".++PPPPPPPPPPPPPPPPPPPPPPPPPP+++++++P++..RRRRRR.",
".++PPPPPPPPPPPPPPPPPPPPPPPPPP+++++++P++..RRRRRR.",
"..++++++++++++++++++++++++++++++++++++...RRRRRR.",
"................................................",
"................................................",
"..++++++++++++++++++++++++++++++++++++...++++++.",
".++MMMMMMMMMMMMMMMMMMMuuuuucccccccMMM++..+VVVV+.",
".++MMMMMMMMMMMMMMMMMMMuuuuucccccccMMM++..+VVVV+.",
"..++++++++++++++++++++++++++++++++++++...+VVVV+.",
".........................................+VVVV+.",
".........................................+VVVV+.",
"..++++++++++++++++++++++++++++++++++++...+VVVV+.",
".++SSSSSSS++++++++++++++++++++++++++S++..+VVVV+.",
".++SSSSSSS++++++++++++++++++++++++++S++..+VVVV+.",
"..++++++++++++++++++++++++++++++++++++...+VVVV+.",
".........................................+VVVV+.",
".........................................+VVVV+.",
".+++++++++++++++++++++++++++++++++++++...+VVVV+.",
".+BBBBBBBBBBBBBBBBBBBBBBBBBBB+++++++b++..+VVVV+.",
".+BBBBBBBBBBBBBBBBBBBBBBBBBBB+++++++b++..+VVVV+.",
".+BBBBBBBBBBBBBBBBBBBBBBBBBBB+++++++b++..+VVVV+.",
".+BBBBBBBBBBBBBBBBBBBBBBBBBBB+++++++b++..+VVVV+.",
".+++++++++++++++++++++++++++++++++++++...+VVVV+.",
".........................................+VVVV+.",
".........................................+VVVV+.",
".g+++++++++++++++++++++++++++++++++++++..+VVVV+.",
".g+++++++++++++++++++++++++++++++++++++..+VVVV+.",
".gg++++++++++++++++++++++++++++++++++++..+VVVV+.",
".gg++++++++++++++++++++++++++++++++++++..+VVVV+.",
".Gg++++++++++++++++++++++++++++++++++++..+VVVV+.",
".GGg+++++++++++++++++++++++++++++++++++..+VVVV+.",
".GGg++g++++++++++++++++++++++++++++++++..+VVVV+.",
".GGGggggg+++++++++++++++gg++++++g++++++..+VVVV+.",
".GGGggGggg+++g+++++++++ggg++++gggg+++++..+VVVV+.",
".GGGgGGGGggggggg+++gggggggggggggggggggg..+VVVV+.",
".GGGGGGGGGggggggg++ggggGGgggggGGggggggg..+VVVV+.",
".GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG..+VVVV+.",
".........................................+VVVV+.",
".++++++++++++++++++++++++++++++++++++++..+VVVV+.",
".+DDDDDDDDDDDDDDDDD++FFFFFFFFFFFFFFFFF+..+VVVV+.",
".+DDDDDDDDDDDDDDDDD++FFFFFFFFFFFFFFFFF+..+VVVV+.",
".+DDDDDDDDDDDDDDDDD++FFFFFFFFFFFFFFFFF+..+VVVV+.",
".+DDDDDDDDDDDDDDDDD++FFFFFFFFFFFFFFFFF+..+VVVV+.",
".++++++++++++++++++++++++++++++++++++++..++++++.",
"................................................",
"................................................",
/* ----- PARAMETERS ----- */
/* --- Misc --- */
"XPMEXT WMZmon.Parameters",
"RefreshInterval 1000", /* Polling interval in milliseconds */
"CpuGraphColumnWidth 2",
/* --- Fonts --- */
/* TTF fonts are not supported
* use `xfontsel' and `xlsfonts' to get available fonts */
"XPMEXT WMZmon.Fonts",
"Time -*-helvetica-bold-r-normal--11-*-*-*-*-*-*",
"Date -*-helvetica-medium-r-normal--11-*-*-*-*-*-*",
/* --- Formats --- */
/* date/time format, the same as in date(1) and strftime(3) */
"XPMEXT WMZmon.Formats",
"Time %H:%M",
"Date %d-%b-%y",
/* ------ ALTERNATIVE TEMPLATE ----- */
/* use middle mouse button click to switch */
"XPMEXT WMZmon.Alternative",
"................................................",
".----------------------------------------------.",
".-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA-.",
".-A------------------------------------------A-.",
".-A------------------------------------------A-.",
".-A------------------------------------------A-.",
".-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA-.",
".-A------------------------------------------A-.",
".-A------------------------------------------A-.",
".-A------------------------------------------A-.",
".-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA-.",
".----------------------------------------------.",
"................................................",
".::::::::::::::::::::::::::::::::::::::..++++++.",
".:IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII..+VVVV+.",
".:I:::::::::::::::::::::::::::::::::::I..+....+.",
".:I:::::::::::::::::::::::::::::::::::I..+....+.",
".:I:::::::::::::::::::::::::::::::::::I..+....+.",
".:IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII..+....+.",
".:I:::::::::::::::::::::::::::::::::::I..+....+.",
".:I:::::::::::::::::::::::::::::::::::I..+....+.",
".:I:::::::::::::::::::::::::::::::::::I..+....+.",
".:IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII..+....+.",
".::::::::::::::::::::::::::::::::::::::..+....+.",
".........................................+....+.",
".........................................+....+.",
".+++++++++++++++++++++++++++++++++++++...+VVVV+.",
".+BBBBBBBBBBBBBBBBBBBBBBBBBBB+++++++b++..+VVVV+.",
".+BBBBBBBBBBBBBBBBBBBBBBBBBBB+++++++b++..+VVVV+.",
".+++++++++++++++++++++++++++++++++++++...+VVVV+.",
".........................................+....+.",
"..++++++++++++++++++++++++++++++++++++...++++++.",
".++MMMMMMMMMMMMMMMMMMMuuuuucccccccMMM++..+VVVV+.",
".++MMMMMMMMMMMMMMMMMMMuuuuucccccccMMM++..+VVVV+.",
"..++++++++++++++++++++++++++++++++++++...+VVVV+.",
".........................................+....+.",
"..++++++++++++++++++++++++++++++++++++...+VVVV+.",
".++SSSSSSSSSSSSSSSSSSSSSSSSSS+++++++S++..+VVVV+.",
".++SSSSSSSSSSSSSSSSSSSSSSSSSS+++++++S++..+VVVV+.",
"..++++++++++++++++++++++++++++++++++++...+VVVV+.",
".........................................+....+.",
".GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...+VVVV+.",
".GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...+VVVV+.",
".GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...+VVVV+.",
".GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...+VVVV+.",
".GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...+VVVV+.",
".GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...++++++.",
"................................................",
"XPMENDEXT"
};