#! /bin/sh #1996-10-29 last update ##################################################### ### X Window System Starting-Configuration Script ### ##################################################### ### ### This shell script sets initial X11 clients. It is ### passed as a parameter to xinit and run by xinit along with the ### X11 server. When this script terminates the X Window System will ### terminate. ### ### 1) Standard output and error output for programs started by this script ### are redirected to $HOME/.x11startlog. This avoids output to the screen ### that would detract from the window display. If an error occurs starting ### X11, the logfile would be a good place to look for a clue to the problem. ### You can view the file by typing ``more .x11startlog'' at the command ### prompt of your home directory. exec >$HOME/.x11startlog 2>$HOME/.x11startlog ### 2) Setup a default WMDIR if it is not set (for use by HP Windows/9000). : ${WMDIR:="/dev/screen"}; export WMDIR # if there was no $HOME/.Xdefaults, $doxrdb is set to # 'xrdb -nocpp -load /usr/lib/X11/sys.Xdefaults' # otherwise this is a nop. $doxrdb unset doxrdb ### 4) The following X clients start as part of the initial window ### system environment. Users can change or add to these default clients ### to set up a custom environment. All clients started in this script ### should be run in the background. ### ### x11start can pass global parameters to this script. For example, ### it can pass a ``hostname:display.screen'' for all clients to use. ### Another use would be to pass an additional parameter that ### all of the clients accept, such as "-xrm *foreground blue". If the ### user does not pass in a parameter, '$@' is null. mwm $@ & # Start the Motif-based Window Manager. sleep 5 # Allow time for initializing mwm before starting other clients. xsetroot -bitmap /esimec/bitmap/esimec_scuro.xbm # xsetroot -solid DarkSlateGrey xset r on xset s off xset m 10 xclock -fg yellow -bg Navy -digital -fn hp8.10x20b -update 1 -geometry 260x40-1+1 & # xclock -hd yellow -hl yellow -fg yellow -bg Black -analog -chime -fn hp8.10x20 -update 1 -geometry 150x150-1+1 & hpterm -sb -sbbg CadetBlue -sbfg White -sl 100 -C -geometry 80x24+1+1 -name Console $@ & #$HOME/.xme10 & ### Add client commands below, one command per line. ### End each command line with an ampersand (&). ### 5) The following "wait" call ensures that all terminated ### child processes are cleaned up (i.e., no processes are ### left around). wait ### 6) All X clients started by this script have terminated at this point. ### Now sleep forever (if this script terminates the window system will ### be terminated). When the window system is terminated with ### [Shift][CTRL][Reset] this script will be killed. exec sleep 2000000000 ### The window system is terminated when this script is terminated. ###