If u want to be able to choose WindowManager (WM) u can replace /etc/rc.d/rc.4 with this script, then change defaut run level to be 4 in /etc/inittab. Or just easily put it in ~/bin/WMChooser.sh then append "$HOME/bin/WMChooser.sh" at the end of ~/.bash_profile, without "".
Code:
#!/bin/sh
# ~/bin/WMChooser.sh
# XINITDIR is the directory containing those xinitrc files
XINITDIR=/etc/X11/xinit
# Use your customized xinitrc? replace XINITDIR with thier path
#XINITDIR=$HOME/etc/X
delXinitrc() {
[ -e $HOME/.xinitrc ] && rm -f $HOME/.xinitrc 2>/dev/null
# echo "~/.xinitrc deleted"
}
STARTX="no"
[ `tty|cut -b -8` = "/dev/tty" -a $TERM = "linux" ] && STARTX="yes"
[ -e /tmp/.X0-lock ] && STARTX="yes"
#echo $TERM $STARTX
[ $STARTX = "yes" ] && {
echo -en "\n\tWhat to start(blackbox|fluxbox|twm|mwm|kde|gnome)? "
read WM
case "$WM" in
'blackbox') delXinitrc;/bin/ln -s $XINITDIR/xinitrc.$WM ~/.xinitrc;;
'fluxbox') delXinitrc;ln -s $XINITDIR/xinitrc.$WM ~/.xinitrc;;
'twm') delXinitrc;ln -s $XINITDIR/xinitrc.$WM ~/.xinitrc;;
'mwm') delXinitrc;ln -s $XINITDIR/xinitrc.$WM ~/.xinitrc;;
'kde') echo "the command must be startkde..";;
'gnome') echo "Sorry just forget the command for gnome";;
*)
echo -e "\n\tDumb ass, I start mwm now..\n"
delXinitrc;ln -s $XINITRC/xinitrc.mwm $HOME/.xinitrc;;
esac
/usr/X11R6/bin/startx 2> ~/tmp/startx.err
}
Need a little tweak to suit ur installation, compare those option between case..esac to the installed WMs on /etc/X11/xinit..