I am not sure how many cwm users actually use the 'wm' (exec window
manager) menu, but I'd like to somewhat change it.
Right now it works just like the 'exec' menu where it populates any
executable in the path, then replaces the existing window manager with
that. For cwm development (or any wm development this feature is for),
this is essentially useless because one does't actually install the
various test binaries into the path (even if one did, the menu doesn't
display the path of each, just the first match, etc, etc). One has to
always hand type the full path of whatever replacement window manager
into the 'wm' menu - it's painful and slow. I don't know many other
people actively working on cwm so I'm not sure of the opinions and
What I'd prefer is somewhat what other window managers have - a list,
via config, for a selection of available window managers. A default
list as just 'wm cwm cwm' (wm <name> <path_and_args>). Most folks might
have just used this 'wm' feature to restart cwm as opposed to the
'restart' command from the old days (which is why this menu originated
long time ago I believe) - leaving support for that and not changing the
function name is fine.
I doubt people are installing window managers and switching back and
forth in such a manner that annotating them via config is a burden.
Below is a rough draft of the above - it needs manpage changes, clean-up
of the old way, etc, but it's the minimal diff for the general idea.
Bonus side-effect: This also limits the shell-like goop to just the