
This program was intended to be used as Window Manager selector for people who like to 
change WMs often ( like for example me )
( while testing some of my programs with different WMs I simply got tired of editing my xinitrc  file and came up with
this solution )

XwmSelector is controled by simple configuration file ,very similiar to those (in)famous ini files on windoze.
By default, this file is called XwmSelector.ini and is located in /etc directory. 

1. Program usage as Window Manager selector

- Edit XwmSelector.ini file to suit your system ( each option is described inside ini file )

- Edit your /usr/X11R6/lib/X11/xinit/xinitrc file ( or whatever file you are using to start WM ) to include path to XwmSelector as a first program being started after X server is up.

   If your ini file is located somewhere else then in /etc directory be sure to include path to the file as an argument.
   This is how xinitrc looks on my system :
    
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

XwmMenu /root/XwmMenu.ini
#ctwm
#fvwm
#fvwm2
#/opt/kde/bin/startkde
    
  That's all.
  Next time when you start X windows , you will be presented with nice menu 

2. How this works 

  When X server starts up xinitrc is read and any program specified in this file is run . Generally it is Window Manager and possibly some other programs
   ( xterm or whatever ..).  From the X server point of view it doesn't really matter what program it is or even if there is anything here at all - it just runs these 
   programs and then quits. ( that's why  when you quit your WM and there is no more programs specified to be run in xinitrc, you end up back in console window.)
  
   XwmMenu is simple program that displays menu of options ( controled by ini file ). After selection is made by user , XwmMenu runs coresponding program and waits
   for it to finish. After that program is done it pops right back on the screen ready for  user to make another selection. If that selection happens to be "quit" then XwmMenu
   is done and, assuming there is no more programs specified in xinitrc, X server quits. It is pretty much that simple. :-)

   Additionally, XwmMenu can be used to set root (desktop) window background to specified color or image.
   
   To avoid taking any resources ( color entries on 8 bit displays ) , before running selected program, XwmMenu closes connection to X server.
 
    
 3. Credits

    XwmMenu uses Window Maker raster graphics library (wrlib.a - static link ) and requires jpeg library dll  to be present on the system.

    WM raster library was writen by Alfredo K. Kojima <kojima@inf.ufrgs.br>

    ----------------------------------------------------------------------------------------------------

    Author:  Wojciech Rawdanik  <walter@netbyte2000.com>



     




        
   


  








 
  
   

   
   

   
   
				
  
 
