2009-09-02: Uploaded the config files package clickable-dzen2.tar.bz2, and the complete XMonad config is available on github.
Xmobar and dzen2 are two poplar status panel for XMonad, because they
can be hooked into the logHook and display the status of XMonad. But
they are not interactively friendly. Although I can use keyboard to
perform all the tasks, in very rare cases, I still want to be able to
use only one hand and the mouse.
Fortunately, latest version 1 of dzen2 supports mouse action on region. But XMonad does not support client command to invoke windows management command. Two tools wmctrl and xdotool can help to resolve this problem. The former can interact with any EWMH/NetWM compatible X Window Manager, and the latter can simulate keyboard input. So my solution is adding mouse action in dzen2, use wmctrl to switch desktop and xdotool to change layout.
Read more...