The X11 window manager "larswm" is a minimalist window manager descended from 9wm, which was itself inspired by Plan 9's windowing system. The core idea is that windows should arrange themselves, allowing the user to concentrate on getting the job done, instead of pixel-dinking.
I got tired of maintaining a large larswm configuration file
containing lots of custom key definitions for my Logitech iTouch
keyboard, so I wrote some M4 macros to simplify my configuration
file, and to automate the numbering of application key directives.
Those of you who administer sendmail
will be familiar
with the process of using a short macro file to produce a long
(and essentially write-only) configuration file.
To use the configuration macros you will need:
m4 larswm.mc >$HOME/.larswmrc
gm4
instead
of m4
.
XF86Standby
, make sure they are defined in your X
keymap. If you see "Keysym 0x0, NoSymbol
" in the
output of xev
when you press your extended keys,
you need to use xmodmap
to set the
keycode -> keysym mapping as in this example. If you try to trap
an unknown keysym, larswm will break---clients such as xterm
will just beep plaintively at you when you press any key.