Ενα χαρακτηριστικό αρχείο .x11start
που μπορεί να χρησιμοποιηθεί
με το x11start
και να αντικαταστήσει το .xinit
:
#! /bin/sh ################################################# # X Window System Starting-Configuration Script (.x11start) # # 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 -solid darkolivegreen& ### Add client commands below, one command per line. ### End each command line with an ampersand (&). xclock -geometry 300x90-1+1 -chime & xload -geometry 150x90-130+1 & xbiff & xterm -title phgasos -n phgasos -e rlogin phgasos & xterm -title THESEAS -n theseas -e rlogin theseas & xterm -title ICAROS -n icaros -e rlogin icaros & ### 5) The following "wait" call ensures that all terminated ### child processes are cleaned up (i.e., no <defunct> 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. ###