Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!psuvax1!brutus.cs.uiuc.edu!rpi!crdgw1!montnaro From: montnaro@sprite.crd.ge.com (Skip Montanaro) Newsgroups: comp.windows.x Subject: Re: Beginner's X Question Message-ID: Date: 17 Nov 89 13:03:06 GMT References: <2115@bacchus.dec.com> Sender: news@crdgw1.crd.ge.com Reply-To: (Skip Montanaro) Distribution: usa Organization: GE Corporate Research & Development, Schenectady, NY Lines: 31 In-reply-to: klee@chico.pa.dec.com's message of 16 Nov 89 22:46:53 GMT If you're not running a session manager of some sort, you can put commands to be executed upon server startup in ~/.xinitrc. Normally, any persistent commands are placed in the background, except the window manager, which is run last. When you exit the window manager, xinit will exit also. A simple example: #!/bin/sh if [ -f $HOME/.Xres ] ; then xrdb -load $HOME/.Xres fi # zip the pointer around the screen xset m 5 5 # terminal emulator to run system commands and accept console messages xterm -C -geometry 80x40+5-5& # normal editing emacs emacs -geometry 80x69-5-5 & # and a window manager startupfile=$HOME/.awmrc-`hostname` if [ ! -r $startupfile ] ; then startupfile=$HOME/.awmrc fi /usr/bin/X11/awm -f $startupfile -- Skip Montanaro (montanaro@crdgw1.ge.com)