[Xmonad] Statusbar ideas
Robert Manea
rob.manea at googlemail.com
Thu May 10 08:17:49 EDT 2007
Hi,
i just played a bit with xmonad and added 2 new actions to dzen2 to be
better suitable as a statusbar.
* Example 1: Custom statusbar
Add the following to your .xinitrc just before xmonad is being called:
dwm-status.sh | dzen2 -p -e 'sigusr1=raise;sigusr2=lower;onquit=exec:rm /tmp/dzen2-pid;button3=exit' & echo $! > /tmp/dzen2-pid
Add 2 keybindings to Config.hs:
, ((modMask, xK_s ), spawn "kill -10 `cat /tmp/dzen2-pid`")
, ((modMask, xK_t ), spawn "kill -12 `cat /tmp/dzen2-pid`")
dwm-status.sh can be found here (zsh script!):
http://gotmor.googlepages.com/dwm-status.sh
mod-s raises the statusbar to view
mod-t lowers it (hides it behind the other windows)
* Example 2: xmonad debugging output
.xinitrc:
xmonad 2>&1 | dzen2 -p -e 'sigusr1=raise;sigusr2=lower;onquit=exec:rm /tmp/dzen2-pid;button3=exit' & echo $! > /tmp/dzen2-pid
while :; do sleep 3600; done
Add the same key bindings as described above.
You could use then '-l <n>' feature to keep a log of the debugging
output and scroll through it, too.
This is a really hackish approach but good enough for debugging purposes
as i think :).
IMPORTANT: For all this to work you'll need the latest svn version of
dzen2!
Get it with:
svn checkout http://dzen.googlecode.com/svn/trunk/ dzen
Have fun, Rob
More information about the Xmonad
mailing list