home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
x
/
volume2
/
xtools
/
patch1
/
README_v1.0
< prev
next >
Wrap
Text File
|
1993-04-28
|
3KB
|
74 lines
This is my version of xtools for version 11 of the X Window System. I
find it useful on my SUN because I don't like having the console
window started up by xinit because if I accidently or otherwise exit
from the console window then I get booted out of X.
There isn't a manual page yet so here's a quick description:
xtools reads the file ~/.xtools and executes each line. Things that
you want to run in the background (pretty much everything) must have
an ampersand (&) at the end of their lines. Anything that you don't
want to run in the background (no ampersand at the end) MUST come
first in your .xtools file, otherwise xtools will hang.
Here's what my .xtools file looks like:
xrdb .xdb
xhost cartan yuban ovaltine bosco
xset m 8 8 r off c 100
xsetroot -gray
twm &
xterm -i -s -n cartan -T cartan #0x0-85+100 -e cartan -e &
xterm -i -s -n brahms -T brahms #0x0-85+135 -e brahms -e &
xterm -i -s -n bosco -T bosco #0x0-85+170 -e bosco -e &
xterm -i -s -n yuban -T yuban #0x0-85+205 -e yuban -e &
xterm -i -s -n ovaltine -T ovaltine #0x0-85+240 -e ovaltine -e &
xterm -i -s -n velveeta -T velveeta #0x0-85+275 &
xterm -i -C -r -s -n CONSOLE -T CONSOLE -fn screenb-12 -geo 80x24+1-1 #0x0-85+310 &
xperfmon =175x290-115+0 & xclock &
xbiff &
xtools was written with the Athena Widgets. This means that you could
load properties into the root window for it but since it is started up
by xinit that doesn't work, but they are seen if you put them in your
.Xdefaults file. Here's what I have in mine:
xtools*geometry: -1-100
xtools*icon: on
xtools*home.font: vbee-36
xtools*confirm.font: vbee-36
In addition to the regular command line options supported by the
Toolkit, xtools also accepts the flag -file which should be followed
by the name of a file which will be used instead of the ~/.xtools
file. There is also a -debug flag, but I haven't used it recently and
don't know if it still does anything reasonable or useful.
IMPORTANT NOTE: As with the xtools for version 10, you must either set
the DISPLAY environment variable before starting or specify the
display on the command line to xtools. I have the following in my
.cshrc file:
set hostname = ` hostname | sed -e 's/\..*//' `
alias x 'xinit xtools -display ${hostname}:0 ; \\
setkeys reset ; \\
clear'
Unlike the version 10 xtools, this one doesn't have a menu; it just
has 2 buttons; "quit" and "help" (the help button is dimmed because I
haven't put in any code for it). When you press the quit button
another window pops up for confirmation; if you press the "nope"
button then you're left where you were and if you press the "yep"
button then it kills off all of the windows. Since I added the
&-at-the-end-of-the-line-feature I now get some (what appears to me to
be) non-serious messages when quitting. Dunno why.
--------------------------------------
rusty c. wright
rusty@cartan.berkeley.edu
ucbvax!cartan!rusty