#  X WINDOW SYSTEM STARTUP SCRIPT
#
#  This shell script is used to setup the initial X clients.  It is
#  passed as a parameter to xinit, to be run by xinit along with the 
#  X server.  When this script terminates the X window system will be
#  terminated.

#  Standard output and error output for programs started by this script
#  are redirected to /dev/null (i.e. discarded).  This avoids
#  output to the screen that would mess up the window system display.
 
exec >/dev/null 2>/dev/null

#  startup Zephyr
zstart_die $$ &
zwgc

# setup delete/backspace, bell, mouse speed
xmodmap -e "keysym BackSpace = Delete" 
xset b 1 400 40
xset m 6

# add hosts
xhost +whitechapel +victoria +paddington +waterloo +uxbridge +brixton
xhost +knightsbridge +bakerstreet +picadilly +aldwych +marblearch +westminster +hydepark +demille
xhost +media-lab +cadillac

# setup background
xshow /v/images/turk/ms.big -root

# start clock, xbiff, xeyes
xclock -analog -fg "midnight blue" -bg "#eee" -update 1 -padding 4 -geometry 75x75-4+0 &
xeyes -fg "brown" -geometry +904+0 &
xbiff -fg "midnight blue" -bg "#eee" -geometry +1085+94 &
#xload -update 1 -fg "midnight blue" -bd "coral" -geom 140x60+2-2 &

# set my main windows: xterm and emacs
xterm -sb -C -T `hostname` -geom 80x24+0+0 -fg white &
emacs -bg "midnight blue" -w 80x42+488+210 &

# set up the ~/.display file
echo `hostname`:0 > .display

# start the window manager
twm 
