Sample ~/.xinitrc

###
#   If olvwm is defined as the window manager use these defaults
###
if [ x$XWM = xolvwm ]
then
  /usr/local/bin/xdaliclock -fg blue -fn rk24 -geometry 130x41+379+-24 &
  /usr/X11/bin/xload -geometry 120x137+510+0 &
  /usr/X11/bin/xeyes -geometry 80x50+301+-32 &
  /usr/X11/bin/xterm -tn xterm -fn 7x14 -geometry 80x24+0+40 &
  /usr/X11/bin/xrdb -merge < $HOME/.Xresources &
  /usr/openwin/bin/olvwm

###
#   If mwm is defined as the window manager use these defaults
###
elif [ x$XWM = xmwm ]
then
  /usr/bin/X11/xsetroot -solid "tan"
  /usr/local/bin/xdaliclock -fg blue -fn rk24 -geometry 130x41+379+0 &
  /usr/bin/X11/xload -geometry 120x137+510+0 &
  /usr/bin/X11/xeyes -geometry 80x50+301+0 &
  /usr/bin/X11/xterm -tn xterm -fn 7x14 -geometry 80x24+0+40 &
  /usr/bin/X11/xrdb -merge < $HOME/.Xmwmresources &
  mwm

###
#   If twm is defined as the window manager use these defaults
###
elif [ x$XWM = xtwm ]
then
  /usr/bin/X11/xsetroot -solid "cadetblue"
  /usr/bin/X11/xload -nolabel -geometry 120x137+892+0 &
  sleep 1
  /usr/bin/X11/rxvt -font "-schumacher-clean-medium-r-normal--14-140-75-75-c-70-iso8859-1" -geometry 80x24+0+0 -T Top -n Top -e /usr/bin/top &
  sleep 1
  /usr/X11R6/bin/xdaliclock -fn rk24 -geometry 130x41+759+0 &
  sleep 1
  /usr/bin/X11/color_xterm -bg grey -cr black -sb -sl 500 -ls -j -fn 10x20 -tn color_xterm -geometry 80x24+0+75 &
  sleep 1
  /usr/X11/bin/xpanic -random &
  sleep 1
  /usr/bin/X11/xeyes -geometry 80x50+915+-3 &
  twm

elif [ x$XWM = x95 ]
then
  /usr/X11R6/bin/xsetroot -solid "SkyBlue"
  #/usr/X11R6/bin/rxvt -font "-schumacher-clean-medium-r-normal--14-140-75-75-c-70-iso8859-1" -geometry 80x24+0+0 -T Top -n Top -e /usr/bin/top &
  /usr/X11R6/bin/xterm -geometry 80x24+0+69 -bg rgb:4a/8b/99 -fg white -cr white -sb -sl 2048 -j -ls -fn "-b&h-lucidatypewriter-medium-r-*-*-18-*-*-*-*-*-*-*" &
  /usr/X11R6/bin/xterm -bg black -fg white -cr black -sb -sl 500 -ls -geometry 80x24+168+101 -j -fn 10x20 &
  #/usr/bin/X11/rxvt -geometry 80x24+-2+-18 -font "-schumacher-clean-medium-r-normal--8-80-75-75-c-60-iso8859-1" -T Top -n Top -e /usr/bin/top &
  #/usr/X11R6/bin/xdaliclock -fn rk24 -bg DimGray -fg wheat -geometry 130x41+759+0 &
  #/usr/X11R6/bin/xload -nolabel -geometry 120x137+892+0 &
  #/usr/bin/X11/xeyes -geometry 80x50+537+-18 &
  #/usr/bin/X11/xterm -tn xterm -fn 7x14 -geometry 80x24+0+47 &
  /usr/X11R6/bin/fvwm95-2

###
#   If fvwm id defined run fvwm with the following 
###
else
  /usr/X11R6/bin/xsetroot -solid "SkyBlue"
  #/usr/X11R6/bin/rxvt -font "-schumacher-clean-medium-r-normal--14-140-75-75-c-70-iso8859-1" -geometry 80x24+0+0 -T Top -n Top -e /usr/bin/top &
  /usr/X11R6/bin/xterm -geometry 80x24+0+77 -bg rgb:4a/8b/99 -fg white -cr white -sb -sl 2048 -j -ls -fn "-b&h-lucidatypewriter-medium-r-*-*-18-*-*-*-*-*-*-*" &
  /usr/X11R6/bin/xterm -bg black -fg white -cr black -sb -sl 500 -ls -geometry 80x24+168+101 -j -fn 10x20 &
  #/usr/bin/X11/rxvt -geometry 80x24+-2+-18 -font "-schumacher-clean-medium-r-normal--8-80-75-75-c-60-iso8859-1" -T Top -n Top -e /usr/bin/top &
  #/usr/X11R6/bin/xdaliclock -fn rk24 -bg DimGray -fg wheat -geometry 130x41+759+0 &
  #/usr/X11R6/bin/xload -nolabel -geometry 120x137+892+0 &
  #/usr/bin/X11/xeyes -geometry 80x50+537+-18 &
  #/usr/bin/X11/xterm -tn xterm -fn 7x14 -geometry 80x24+0+47 &
  fvwm
fi

 


Last Modified: 13 June 1997

St. Louis Unix Users Group - Linux SIG