#!/bin/bash # X Windows start-up script. # The default version of this file is in /local/share/x11/.X11rc. #try to start kde. If fails should keep going and stat twm if [ -f /usr/bin/startkde ]; then exec /usr/bin/startkde fi # Load personal X resources, if any. if [ -f $HOME/.X11defaults ]; then xrdb -merge -DCONSOLETYPE=$CONSOLETYPE $HOME/.X11defaults fi xclock -geometry 90x90-0+0 & xbiff -geometry -95+0 & # Start the twm window manager. # To customize twm, copy the default .twmrc (named below) # to your home directory. if [ -f $HOME/.twmrc ]; then twm & else twm -f /local/share/x11/.twmrc & fi # Start a console window if we're on a workstation. if [ "`tty`" = /dev/console -o "X$DISPLAY" = "X:0" ]; then # Turn off the screen-saver xset s off if [ "$CONSOLECLASS" = "colour" ]; then xsetroot -solid grey fi xterm -geometry 110x10+0+0 -C -fn 6x13 -title `hostname`:console & # Start a couple of iconified xterms. xterm -iconic -geometry 80x36 & xterm -iconic -geometry 80x36 & fi # A couple of xterm windows. xterm -geometry 80x24-1-1 & sleep 1 xterm -geometry 80x50+0-1 -ls & # To start an xterm (or whatever) on a different machine, # use "rcmd". For example: # rcmd dvp.cs xterm -title dvp.cs & # If you have a different home directory on the other machine, # use "rcmd -a ...". # When this application exits, your X session is over, # so we run it in the foreground. exec xstring -geometry 70x30-148+0 -fn 10x20 -fg blue -bg tomato Exit