#!/bin/csh -f
# X11 setup file from the Frame Demo Account.
# $Header: /xdim/dim40/fmhome/fminit/samplehome/RCS/X11setup,v 1.1 1993/04/02 03:46:33 tvb Exp $
#

#
# Establish your desired keyboard mapping.
echo -n "xmodmap: "
xmodmap  ~/.Xmodmap
echo "xmodmap done"

#
# Turn off host access control
echo -n "xhost: "
/usr/bin/X11/xhost +
echo "xhost done"

#
# Put your X resources into the server.
echo -n "xrdb: "
/usr/bin/X11/xrdb ~/.Xdefaults
echo "xrdb done"

#
# Run with no window manager if running as 'DM owns root'.
if ("X$1" != 'X-wm') then
    echo -n "window manager (mwm): "
    /usr/bin/X11/mwm &
endif

#
# Start up a clock.  Why not?
echo -n "clock: "
/usr/bin/X11/xclock -geometry 48x48-0+0 &

#
# Start up FrameMaker or Demo FrameMaker.
echo -n "maker: "
$FMHOME/bin/demomaker

#
# Exec the C-shell.  This leaves all spawned processed running and attached to
# this terminal, but disallows killing them by C-shell job number.
exec /bin/csh
