#!/bin/sh

dim="`xdpyinfo | awk ' /dimensions/ {print $2}' | grep '1024x768'`"
if [ "$?" = 0 ]; then
	resources=$HOME/.Xdefaults_1024
else
	resources=$HOME/.Xdefaults_1280
fi

if [ -r $resources ]; then
	xrdb -load -quiet $resources
fi

/usr/bin/X11/xsetroot -bitmap /usr/include/X11/bitmaps/granite \
	-bg indigo -fg sgiteal

if [ -x /usr/demos/buttonfly ]; then
	/usr/demos/buttonfly &
elif [ -x /usr/sbin/iconbook ]; then
	/usr/sbin/iconbook /usr/lib/desktop/iconbook/syspages/Demos &
elif [ -x /usr/sbin/workspace ]; then
	/usr/sbin/workspace
else
	inform "Cannot find a standard demo interface.  Try the toolchest."
fi
