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