The old wmswitcher script from 2011 was mentioned in the waimea thread here.
I said I'd try modernize it and I will try.
But as a "side-thought", I thought an approach through *.desktop files could do the
job too. It's entirely optional, of course, but some people may find this handy.
The pet archive includes *.desktop restart files for the following WMs:
If you use them, they will show up in the Utilities section of your menu.echinus fluxbox icewm jwm kde
openbox pekwm waimea wmx xfce
Merry Christmas!
~~~~~~~~~~
(Please download second version from post below.)