http://ftp.x.org/contrib/applications/xscreensaver-2.24.tar.gz
[xscreensaver] / driver / XScreenSaver.ad.in
1 !
2 !                              XScreenSaver
3 !
4 !            a screen saver and locker for the X window system
5 !                            by Jamie Zawinski
6 !
7 !                              version 2.24
8 !                                30-Jun-98
9 !
10 ! See "man xscreensaver" for more info.  The latest version is always
11 ! available at http://people.netscape.com/jwz/xscreensaver/
12
13 *timeout:               10
14 *cycle:                 10
15 *lockTimeout:           0
16 *passwdTimeout:         30
17 *nice:                  10
18 *lock:                  False
19 *verbose:               False
20 *timestamp:             False
21 *fade:                  True
22 *unfade:                False
23 *fadeSeconds:           3
24 *fadeTicks:             20
25
26 *captureStderr:         True
27 *captureStdout:         True
28 *overlayTextForeground: #FFFF00
29 *overlayTextBackground: #000000
30 *overlayStderr:         True
31 *font:                  *-medium-r-*-140-*-m-*
32
33 ! Turning on "installColormap" interacts erratically with twm and tvtwm,
34 ! but seems to work fine with mwm and olwm.  Try it and see.  If your
35 ! screen turns some color other than black, the window manager is buggy,
36 ! and you need to set this resource to False (or get a WM that works.)
37 !
38 *installColormap:       True
39
40
41 ! Any program which can draw on the root window will work as a screensaver.
42 ! The following resource enumerates them.
43 !
44 ! Programs are separated by newlines (specified in resource files with \n).
45 ! Lines may be continued with a lone \ at the end of the line.
46 !
47 ! Each line is an `sh' command.
48 !
49 ! But, if the first word on the line is the name of a visual followed by a
50 ! colon, then that visual will be used for the program, if it is available.
51 ! If no such visual is available, then the program will be skipped.  In
52 ! this way, you can specify that you want certain programs to run only
53 ! on color screens, and others only on mono screens, by making use of the
54 ! magic visual names "color" and "mono".  Likewise, if some hacks prefer
55 ! colormaps, but others prefer 24-bit windows, that also can be arranged
56 ! (in this case, by using "PseudoColor:" versus "TrueColor:".)
57 !
58 ! All programs must be launched in such a way that they draw on the root
59 ! window; they should not be spawned in the background with "&".  If shell
60 ! metacharacters are used, they must be understandable to `sh', not `csh'
61 ! (the $SHELL variable is not consulted, for unfortunate but good reasons.)
62 !
63 ! Be sure to check out Demo Mode: run the command `xscreensaver-command -demo'
64 ! and it will cause the running XScreenSaver program to pop up a dialog box
65 ! that lets you try out the following programs interactively.  See the man
66 ! pages for details.
67 !
68 *programs:      qix -root -solid -delay 0 -segments 100                 \n\
69                 attraction -root -mode balls                            \n\
70                 attraction -root -mode lines -points 3 -segments 200    \n\
71                 attraction -root -mode splines -segments 300            \n\
72                 attraction -root -mode lines -radius 300                  \
73                         -orbit -vmult 0.5                               \n\
74                 pyro -root                                              \n\
75                 helix -root                                             \n\
76                 pedal -root                                             \n\
77                 rorschach -root -offset 7                               \n\
78                 hopalong -root                                          \n\
79                 greynetic -root                                         \n\
80                 xroger -root                                            \n\
81                 imsmap -root                                            \n\
82                 slidescreen -root                                       \n\
83                 decayscreen -root                                       \n\
84                 jigsaw -root                                            \n\
85                 blitspin -root -grab                                    \n\
86                 slip -root                                              \n\
87                 hypercube -root                                         \n\
88                 halo -root                                              \n\
89                 maze -root                                              \n\
90                 noseguy -root                                           \n\
91                 flame -root                                             \n\
92                 lmorph -root                                            \n\
93                 deco -root                                              \n\
94                 moire -root                                             \n\
95                 moire2 -root                                            \n\
96                 lightning -root                                         \n\
97                 strange -root                                           \n\
98                 spiral -root                                            \n\
99                 laser -root                                             \n\
100                 grav -root                                              \n\
101                 grav -root -trail -decay                                \n\
102                 drift -root                                             \n\
103                 ifs -root                                               \n\
104                 julia -root                                             \n\
105                 penrose -root                                           \n\
106                 sierpinski -root                                        \n\
107                 braid -root                                             \n\
108                 galaxy -root                                            \n\
109                 bouboule -root                                          \n\
110                 swirl -root                                             \n\
111                 flag -root                                              \n\
112                 sphere -root                                            \n\
113                 forest -root                                            \n\
114                 lisa -root                                              \n\
115                 lissie -root                                            \n\
116                 goop -root                                              \n\
117                 starfish -root                                          \n\
118                 starfish -root -blob                                    \n\
119                 munch -root                                             \n\
120                 fadeplot -root                                          \n\
121                 coral -root                                             \n\
122                 mountain -root                                          \n\
123                 triangle -root                                          \n\
124                 worm -root                                              \n\
125                 rotor -root                                             \n\
126                 ant -root                                               \n\
127                 vines -root                                             \n\
128                 kaleidescope -root                                      \n\
129                 xjack -root                                             \n\
130                 cynosure -root                                          \n\
131                 flow -root                                              \n\
132                 epicycle -root                                          \n\
133                 interference -root                                      \n\
134                 truchet -root -randomize                                \n\
135                 bsod -root                                              \n\
136                 crystal -root                                           \n\
137                 discrete -root                                          \n\
138                 kumppa -root                                            \n\
139                                                                           \
140         mono:   rocks -root                                             \n\
141         color:  rocks -root -fg darksalmon                              \n\
142                                                                           \
143         mono:   qix -root -linear -count 5 -size 200 -spread 30           \
144                         -segments 75 -solid -xor                        \n\
145                                                                           \
146         color:  attraction -root -mode polygons                         \n\
147         color:  attraction -root -mode filled-splines -segments 0       \n\
148         color:  attraction -root -glow -points 10                       \n\
149         color:  bubbles -root                                           \n\
150                                                                           \
151         color:  rd-bomb -root                                           \n\
152         color:  rd-bomb -root -speed 1 -size 0.1                        \n\
153                                                                           \
154   PseudoColor:  qix -root -count 4 -solid -transparent                  \n\
155   PseudoColor:  qix -root -count 5 -solid -transparent -linear            \
156                         -segments 250 -size 100                         \n\
157 @GL_KLUDGE_1@
158 @GL_KLUDGE_2@   gears -root                                             \n\
159 @GL_KLUDGE_2@   superquadrics -root                                     \n\
160 @GL_KLUDGE_2@   morph3d -root                                           \n\
161 @GL_KLUDGE_2@   cage -root                                              \n\
162 @GL_KLUDGE_2@   moebius -root                                           \n\
163 @GL_KLUDGE_2@   stairs -root                                            \n\
164 @GL_KLUDGE_2@   pipes -root                                             \n\
165 @GL_KLUDGE_2@   sproingies -root                                        \n\
166 @GL_KLUDGE_2@   rubik -root                                             \n\
167 @GL_KLUDGE_2@   atlantis -root                                          \n
168  
169
170 ! A few of the hacks require OpenGL, and will only be built if you have it.
171 ! If your vendor doesn't provide real OpenGL, you might want to consider
172 ! building MesaGL, which is a free implementation -- GL is way cool.
173 !
174 ! Note that those hacks (gears, superquadratics, morph3d, cage, moebius,
175 ! stairs, pipes, sproingies, and rubik) tend to work best on a visual *half*
176 ! as deep as the depth of the screen, since that way, they can do
177 ! double-buffering -- try it and see, but you will probably find that you
178 ! should specify the deepest visual that is half as deep as the screen.
179 !
180 ! For example, on a screen that supports both 24-bit TrueColor and 12-bit
181 ! PseudoColor, the 12-bit visual will probably work best (this is true of
182 ! base-model SGI Indys: the 0x29 visual is the one you want.)  Oddly, on SGI
183 ! O2s, (machines that have serious hardware support for GL) the 12-bit
184 ! PseudoColor visual looks awful (you get a black and white, flickery image.)
185 ! On these machines, the visual you want turns out to be 0x31 -- this is but
186 ! one of the eight 15-bit TrueColor visuals (yes, 8, and yes, 15) that O2s
187 ! provide.  This is the only visual that works properly -- as far as xdpyinfo
188 ! is concerned, all of the 15-bit TrueColor visuals are identical, but some
189 ! flicker like mad, and some have deeply weird artifacts (hidden surfaces
190 ! show through!)  I suppose these other visuals must be tied to some arcane
191 ! hardware feature...  Your mileage, therefore, may vary dramatically.
192 !
193 ! Some other programs that you might want to track down (these work as
194 ! XScreenSaver helpers, but are not distributed with it):
195 !
196 !               xdaliclock -root -builtin2                              \n\
197 !               xswarm -r 2>&-                                          \n\
198 !               xwave -root                                             \n\
199 !               xbouncebits ...                                         \n\
200 !               ico -r -faces -sleep 1 -obj ico                         \n\
201 !               xsplinefun                                              \n\
202 !               xmountains -b -M                                        \n\
203 !       color:  xfishtank -c black -d -r 2                              \n\
204 !
205 ! xtacy is ok, but it only works on the default visual.  We can satisfy
206 ! that constraint like so:
207 !
208 !     default:  xtacy -root -delay 100 -funky -number 3                 \n\
209 !     default:  xtacy -root -delay 100 -gravity                         \n\
210 !     default:  xtacy -root -delay 100 -mixer                           \n\
211 !     default:  xtacy -root -delay 100 -taffy -pal 4                    \n\
212
213 ! To display a randomized slideshow of images, you can do something like this:
214 !
215 !     default-n: xv -root -rmode 5  image-1.gif  -quit
216 !     default-n: xv -root -rmode 5  image-2.gif  -quit
217 !     default-n: xv -root -rmode 5  image-3.gif  -quit
218 !               ...and so on...
219 !
220 ! Note that we've used "default-n" as the visual name, rather than just
221 ! "default": this means "default visual, no install", that is, it's like
222 ! specifying the command-line arguments "-visual default -no-install".
223 ! This is necessary because, when XV is running in "-root" mode, it always
224 ! assumes that the default visual and colormap are being used, rather than 
225 ! examining the window it is drawing on to see what visual and colormap it 
226 ! has.  If we didn't force the default visual to be used, xv would get an
227 ! X error.  If we didn't force the default colormap to be installed, the
228 ! colors would be all wrong.  "default-i" may also be used as a visual name
229 ! (meaning, "-visual default -install") but you probably won't ever need
230 ! to use that.
231 !
232 ! XEarth is nice, too:
233 !
234 !     default-n: xearth -nostars -wait 0 -timewarp 400 -pos sunrel/38/-30
235 !
236 !
237 ! Some of the GL demos that SGI ships work with XScreenSaver; most don't.
238 ! XScreenSaver includes a program (not built or installed by default)
239 ! called "xscreensaver-sgigl".  To use the SGI demos with XScreenSaver,
240 ! build that program, and use it to launch the SGI demos.  For example,
241 ! on Irix 6.2, you can do this:
242 !
243 !     xscreensaver-sgigl /usr/demos/bin/ep -S
244 !     xscreensaver-sgigl /usr/demos/bin/bongo
245 !
246 ! On Irix 6.3, things have moved, so you need to do it like this:
247 !
248 !     xscreensaver-sgigl /usr/sbin/ep -S
249 !
250 ! You can also use the "ant" demo, but first you need to wrap a shell script
251 ! around it that cds to its home directory, so that it can find its files;
252 ! and also pass it the -S argument, to prevent it from forking.
253 !
254 !
255 ! Also, since these actually end up mapping their own windows instead of
256 ! drawing on the XScreenSaver-provided root, when they are being run from
257 ! demo-mode, you can't pop up the demo-mode dialog just by clicking the
258 ! mouse: you must first type ESC to make the SGI programs exit.  This sucks.
259 ! Things should work properly when they are being run by xscreensaver in
260 ! non-demo-mode, however.
261 !
262 ! Basically, the SGI demo writers went out of their way to make my life hell.
263
264
265
266 !=============================================================================
267 !
268 !      You probably don't want to change anything after this point.
269 !
270 !=============================================================================
271
272
273 ! Resources for the Motif dialog boxes:
274
275 *fontList:                       *-helvetica-medium-r-*-*-*-120-*-*-*-iso8859-1
276 *demoDialog*label1.fontList:     *-helvetica-medium-r-*-*-*-140-*-*-*-iso8859-1
277 *passwdDialog*fontList:          *-helvetica-medium-r-*-*-*-140-*-*-*-iso8859-1
278 *XmTextField.fontList:             *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
279 *passwdDialog.passwdText.fontList: *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
280 XScreenSaver*XmList.fontList:      *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
281 ! Need to fully-qualify the preceeding in the case of of *sgiMode.
282
283 *XmDialogShell*foreground:              #000000
284 *XmDialogShell*background:              #E5E5E5
285 *XmDialogShell*XmTextField.foreground:  #000000
286 *XmDialogShell*XmTextField.background:  #FFFFFF
287 *XmDialogShell*demoList.foreground:     #000000
288 *XmDialogShell*demoList.background:     #FFFFFF
289
290 ! Need to fully-qualify the following in the case of of *sgiMode.
291 XScreenSaver*XmDialogShell*rogerLabel.foreground:       #CD0000
292 XScreenSaver*XmDialogShell*rogerLabel.background:       #FFFFFF
293
294 *XmDialogShell.title:           XScreenSaver
295 *allowShellResize:              True
296 *autoUnmanage:                  False
297
298 ! This doesn't work.  Motif ignores it if there is a scroll-list!
299 *demoDialog.maxWidth:           600
300
301 *label1.labelString:            XScreenSaver %s
302 *label1.label:                  XScreenSaver %s
303 *label2.labelString: Copyright © 1991-1998 by Jamie Zawinski <jwz@netscape.com>
304 *label2.label:       Copyright © 1991-1998 by Jamie Zawinski <jwz@netscape.com>
305 *demoList.visibleItemCount:     10
306 *demoList.automaticSelection:   True
307 *next.labelString:              Run Next
308 *prev.labelString:              Run Previous
309 *edit.labelString:              Preferences
310 *done.labelString:              Exit Demo Mode
311 *restart.labelString:           Reinitialize
312
313 *resourcesLabel.labelString:    XScreenSaver Parameters
314
315 *timeoutLabel.labelString:      Saver Timeout
316 *cycleLabel.labelString:        Cycle Timeout
317 *fadeSecondsLabel.labelString:  Fade Duration
318 *fadeTicksLabel.labelString:    Fade Ticks
319 *lockLabel.labelString:         Lock Timeout
320 *passwdLabel.labelString:       Password Timeout
321 *resourcesForm*XmTextField.columns:     8
322
323 *verboseToggle.labelString:     Verbose
324 *cmapToggle.labelString:        Install Colormap
325 *fadeToggle.labelString:        Fade Colormap
326 *unfadeToggle.labelString:      Unfade Colormap
327 *lockToggle.labelString:        Require Password
328 *resourcesDone.labelString:     OK
329 *resourcesCancel.labelString:   Cancel
330
331 *passwdDialog.title:            Password
332 *passwdLabel1.labelString:      XScreenSaver %s
333 *passwdLabel2.labelString:      This display is locked.
334 *passwdLabel3.labelString:      Please type %s's password to unlock it.
335 *passwdDone.labelString:        OK
336 *passwdCancel.labelString:      Cancel
337
338 *passwdLabel1.alignment:        ALIGNMENT_BEGINNING
339 *passwdLabel2.alignment:        ALIGNMENT_BEGINNING
340 *passwdLabel3.alignment:        ALIGNMENT_BEGINNING
341 *rogerLabel.width:              150
342
343 ! Disable Motif drag-and-drop in dialog boxes.  This is kind of pathetic, but
344 ! in some older versions of Motif, most any attempt to drag cause immediate
345 ! flaming death from above.  This *should* rip the legs off that bug.
346 !
347 XScreenSaver*dragInitiatorProtocolStyle: DRAG_NONE
348 XScreenSaver*dragReceiverProtocolStyle:  DRAG_NONE
349
350
351
352 ! Resources for the dialog boxes using the abominable Athena widgets:
353
354 *demo_dialog*font:              *-helvetica-bold-r-*-*-*-120-*-*-*-iso8859-1
355 *resources_dialog*font:         *-helvetica-bold-r-*-*-*-120-*-*-*-iso8859-1
356 *passwd_dialog*font:            *-helvetica-bold-r-*-*-*-120-*-*-*-iso8859-1
357 *demo_dialog*label1.font:       *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
358 *resources_dialog*label1.font:  *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
359 XScreenSaver.demo_dialog*List.font: \
360                                 *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
361 XScreenSaver.demo_dialog*Text*font: \
362                                 *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
363
364 XScreenSaver.demo_dialog*foreground:                    #000000
365 XScreenSaver.demo_dialog*background:                    #E5E5E5
366 XScreenSaver.demo_dialog*List.background:               #FFFFFF
367 XScreenSaver.demo_dialog*Scrollbar.background:          #D9D9D9
368 XScreenSaver.demo_dialog*Command.background:            #D9D9D9
369 XScreenSaver.demo_dialog*Text*background:               #FFFFFF
370
371 XScreenSaver.resources_dialog*foreground:               #000000
372 XScreenSaver.resources_dialog*background:               #E5E5E5
373 XScreenSaver.resources_dialog*Command.background:       #D9D9D9
374 XScreenSaver.resources_dialog*Toggle.background:        #D9D9D9
375 XScreenSaver.resources_dialog*Text*background:          #FFFFFF
376
377 *resources_dialog*Dialog.value.translations: #override\n\
378         <Key>Return: beginning-of-line()\n
379
380 XScreenSaver.passwd_dialog*foreground:                  #000000
381 XScreenSaver.passwd_dialog*background:                  #E5E5E5
382 XScreenSaver.passwd_dialog*Command.background:          #D9D9D9
383 XScreenSaver.passwd_dialog*Text*background:             #FFFFFF
384 XScreenSaver.passwd_dialog*roger.foreground:            #CD0000
385 XScreenSaver.passwd_dialog*roger.background:            #FFFFFF
386
387 *demo_dialog*viewport.height:                   200
388 *Form.borderWidth:                              0
389 *Box.borderWidth:                               0
390 *Label.borderWidth:                             0
391 *resources_dialog*Dialog.borderWidth:           0
392
393 *demo_dialog*next.label:                        Run Next
394 *demo_dialog*prev.label:                        Run Previous
395 *demo_dialog*edit.label:                        Preferences
396 *demo_dialog*done.label:                        Exit Demo Mode
397 *demo_dialog*restart.label:                     Reinitialize
398 XScreenSaver.demo_dialog*Command.internalWidth:  10
399 XScreenSaver.demo_dialog*Command.internalHeight: 4
400
401 *resources_dialog*timeout.label:                Saver Timeout:
402 *resources_dialog*cycle.label:                  Cycle Timeout:
403 *resources_dialog*fade.label:                   Fade Duration:
404 *resources_dialog*ticks.label:                  Fade Ticks:
405 *resources_dialog*lockTime.label:               Lock Timeout:
406 *resources_dialog*passwdTime.label:             Password Timeout:
407
408 *resources_dialog*label1.label:                 XScreenSaver Parameters
409 *resources_dialog*buttonbox.verbose.label:      Verbose
410 *resources_dialog*buttonbox.cmap.label:         Install Colormap
411 *resources_dialog*buttonbox.fade.label:         Fade Colormap
412 *resources_dialog*buttonbox.unfade.label:       Unfade Colormap
413 *resources_dialog*buttonbox.lock.label:         Require Password
414 *resources_dialog*done.label:                   OK
415 *resources_dialog*cancel.label:                 Cancel
416
417 *passwd_dialog*label1.label:                    XScreenSaver %s
418 *passwd_dialog*label2.label:                    This display is locked.
419 *passwd_dialog*label3.label:            Please type %s's password to unlock it.
420 *passwd_dialog*ok.label:                        OK
421 *passwd_dialog*cancel.label:                    Cancel
422 *passwd_dialog*passwd_form*label.label:         
423 *passwd_dialog*Dialog.label:                    
424 *passwd_dialog*passwd_form*Text.width:          200
425 *passwd_dialog*passwd_form.borderWidth:         0
426 *passwd_dialog*roger.width:                     150
427 *passwd_dialog*roger.height:                    150
428 *passwd_dialog*roger.borderWidth:               1
429
430
431 ! You probably won't need to change these.  They are only used if no server
432 ! extension is in use.
433 !
434 XScreenSaver.pointerPollTime:           5
435 XScreenSaver.initialDelay:              0
436 XScreenSaver.windowCreationTimeout:     30
437 XScreenSaver.bourneShell:               /bin/sh