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