#!/bin/sh # # .xinitrc # This is a startup file used by the X window system. This file starts up # your favourite X applications when you type 'xinit'. # # To start up X after logging in, type "startx". # startx will start up the X server (if you're on a workstation), # and then execute each command found in this file # (which should be in your home directory). # # You can add commands to this file to start up login windows # or clocks or whatever. Most commands can be run in # the background, but the last line should not be, as your # X session will only hang around until this script completes. # # DON'T edit this file while X is running, or strange things may happen. # If you want to make changes, quit out of X and then edit the file. # # Steve Hayman 91/02/11 # ... # Tom Loos (mostly stolen from Marc Van Heyningen) 5/28/95 # This .xinitrc is not guaranteed to work on an xterm, but it might :-) :-( # # Make sure that /usr/bin/X11 is in your path - X applications # are found in that directory. PATH=`/bin/path ~/bin gnu user /usr/hosts /nfs/greatwhite/usr/games /nfs/greatwhite/usr/local/games/usr/etc` # # uncomment the following if you ever need to X processes from silver or someplace that # doesn't nfs mount home to get .Xauthority #XRSH_AUTH_TYPE=xauth; export XRSH_AUTH_TYPE #for site in silver #do # xrsh $site /bin/true #done XRSH_AUTH_TYPE=none; export XRSH_AUTH_TYPE #PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin:/usr/ucb:/usr/bin/X11 export PATH # start out in the home directory cd # If you want to run X applications on other machines, # they must be given permission to access this machine. # Add them to the next line. # # example: xhost iuvax iucs silver copper >/dev/null xhost - # total security #xhost whale >/dev/null # Default fonts, colours and so on should be kept in a file called # .Xresources in your home directory. If you change anything in that # file while X is running, you should run the xrdb command below manually. if test -f .Xresources; then xrdb <.Xresources fi host=`hostname | cut -d'.' -f1` # On workstations - but not on X terminals - we want to have # a special "console" window which will intercept error messages that # are ordinarily written to the machine's console. (If you don't # have a console window, those messages are written to your # X screen and mess it up.) # xterm with the "-C" option creates a console window. # # Console windows are inappropriate when using an X terminal, since # the X terminal does not serve as anybody's actual physical console. if [ "$STARTX_DISPLAYTYPE" -eq "" ] then STARTX_DISPLAYTYPE=sun fi # STARTX_DISPLAYTYPE is an environment variable conveniently set by # our startx script. # # # start up a console window if not on an xterm # case "$STARTX_DISPLAYTYPE" in xterminal) ;; *) # This line must end with a '&' xterm -C -n con -geometry 70x8+0+0 -fg LawnGreen -bg blue4 -title "console" & ;; esac # Finally, start the window manager. Most people will want # to use "twm", but there are others, including "awm" and "gwm". # # See the file ".twmrc" in your home directory. # twm reads it to find out what key/mouse combinations you # want to use for moving windows, creating new windows, quitting, and so on. # This line must end with a '&' # # CHANGE THE NEXT LINE IF YOU WANT TO RUN A DIFFERENT WINDOW MANAGER # twm & sleep 10 # wait... # # A big terminal window on the local machine # # This line must end with a '&' #xterm -geometry 80x48+10+250 -fg LawnGreen -cr LawnGreen -bg blue4 -iconic -name `hostname` & xterm -geometry 80x48+10+250 -fg LawnGreen -cr LawnGreen -bg blue4 -iconic -name $host & #xterm -geometry 100x66+0+0 -fg LawnGreen -cr LawnGreen -bg blue4 -iconic -name big & #xterm -geometry 80x35+5+450 -fg LawnGreen -cr LawnGreen -bg blue4 -iconic -name lbottom & #xterm -geometry 80x35+660+450 -fg LawnGreen -cr LawnGreen -bg blue4 -iconic -name rbottom & xterm -geometry 80x35+650+200 -fg LawnGreen -cr LawnGreen -bg blue4 -iconic -name rmiddle & xterm -geometry 90x50+225+220 -fg LawnGreen -cr LawnGreen -bg blue4 -iconic -name middle & #xterm -geometry 80x66+250+0 -fg LawnGreen -cr LawnGreen -bg blue4 -iconic -name bigcent & sleep 5 # wait # If you want to have a mail notification window on your favourite # machine, edit the following line; change MACHINE to the machine # where you get mail (iuvax, for instance) and delete the # leading '#' # This line must end with a '&' #xrsh whale /usr/bin/X11/xbiff -geometry 48x48-170+1 -fg red -bg green & #faces -iconic -WP 960 1 -g +4+150 -M -A -B /scratch/tloos/sound/Dragnet.au & # faces for mail -- iconized shows you current message, uniconized shows # last few (10 for this) messages faces -iconic -WP 960 1 -g +4+150 -M -A& # If you want to start up xterm windows logged in to other machines, you can do # it like this: # # xterm -title MACHINE -e rlogin MACHINE & # silver -- I commented this out since it's REALLY slow # xterm -n Ag -iconic -bg grey75 -fg black -cr black -geometry 80x48+470+240 -e# rlogin silver & # moose xterm -n Bullwinkle -iconic -bg peru -fg chartreuse -cr white -geometry 80x48+470+100 -e rlogin moose & # moose # caledonia -- CS SGI Challenge xterm -n BigNessie -iconic -bg LightSteelBlue4 -fg Ivory -cr red -geometry 80x48+470+100 -e rlogin caledonia & # copper -- big Ultrix machine #xterm -name copper2 -iconic -bg red -fg white -cr black -geometry 80x30+250+190 -e rlogin copper & # prism -- old vaxen #xterm -n prism -iconic -bg cyan -fg black -geometry 80x30+280+190 -e rlogin prism & #xterm -name prism2 -iconic -bg cyan -fg black -geometry 80x30+310+190 -e rlogin prism & # run ical - a calendar manager iconically ical -iconic & sleep 2 # wait some more # From here on in you can add whatever X commands appeal to you. # Most people will want to start up a clock and one or more # xterm sessions logged in to other machines. # # Start a round clock in the upper right hand corner. # #xclock -fg red -hd green -bg black -geometry 100x100-1+1 & oclock -transparent -bd red -minute green -geometry 100x100-1+1 & # uncomment this for autolock -- commented out since I don't need it anymore #if [ $STARTX_DISPLAYTYPE = sun ] #then # /u/mvanheyn/bin/xautolock & #fi # # background of a bulldog # #xposk bulldog & #nuked t1 to save space :-( #$HOME/world/t1& # show weather map in background /u/mvanheyn/bin/getwx.pl & #/usr/bin/X11/xmter -geometry -225+1 -bg blue & #/usr/bin/X11/xmosaic -iconic -geometry 80x50+330+250& # run Mosaic -- a WWW browser /usr/bin/X11/Mosaic -iconic -geometry 80x50+330+250& # run exmh -- an X front end to MH, a mailing system #/usr/local/bin/exmh -iconic & # run xeyes so I don't always lose the cursor (you laugh, but you wait...) /usr/bin/X11/xeyes -geometry 80x80+640+108 & sleep 2 #fi # # This command puts up a button labelled 'Logout', and waits for # a click. So click on the 'Logout' button when you're done with X. # # DON'T put this command in the background. # This line must NOT end with a '&' xlogout -fg blue -bg black -label 'Outta Here' -geometry -1+110 # POST LOGOUT CODE!!! # Now do a bit of tidying up that is sometimes necessary on Suns case "$STARTX_DISPLAYTYPE" in sun) kbd_mode -a clear_colormap ;; esac # And if we're on an X terminal, we must kill all the applications # the hard way since we aren't running under a session manager yet case "$STARTX_DISPLAYTYPE" in xterminal) xterminate ;; esac # And we're done. exit 0