#!/bin/sh
#
# Xsession
#
# This is the program that is run as the client
# for the display manager.

case $# in
1)
     case $1 in
     failsafe)
          exec xterm -geometry 80x24-0-0 -ls
          ;;
     esac
esac

startup=$HOME/.xsession
resources=$HOME/.Xresources

if [ -f $startup ]; then
     exec $startup
else
     if [ -f $resources ]; then
          xrdb -load $resources
     fi
# remove the '#' in the lines below to enable them and insert an '#' before the
# fvwm line to disable the fvwm and enable the twm window manager
#         (sleep 1; exec xterm -geometry 90x49+5+5 -ls -sb -sl 250 -tn xterm) &
#         (sleep 2; exec xterm -geometry 90x49+125+75 -ls -sb -sl 250 -tn xterm) &
#         (sleep 3; exec xterm -geometry 90x49+250+150 -ls -sb -sl 250 -tn xterm) &
#         (sleep 4; exec xterm -geometry 40x20-5+250 -ls -sb -tn xterm) &
#         (sleep 5; exec xclock -geometry 80x80-0+0 ) &
#         (sleep 6; exec xload -geometry 120x90-5-120 ) &
#         (sleep 7; exec xeyes -geometry 70x70-450+0 ) &
#         (sleep 8; exec xbiff -geometry 80x80-140-120 ) &
#         (sleep 10; exec xman -geometry 120x60-65+0 ) &
#         (sleep 11; exec xmodmap ~/german ) &
#         exec twm
          exec fvwm
fi
