4 ! a screen saver and locker for the X window system
10 ! See "man xscreensaver" for more info. The latest version is always
11 ! available at http://people.netscape.com/jwz/xscreensaver/
27 *overlayTextForeground: #FFFF00
28 *overlayTextBackground: #000000
30 *font: *-medium-r-*-140-*-m-*
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.)
37 *installColormap: True
40 ! Any program which can draw on the root window will work as a screensaver.
41 ! The following resource enumerates them.
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.
46 ! Each line is an `sh' command.
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:".)
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.)
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
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 \
76 rorschach -root -offset 7 \n\
84 blitspin -root -grab \n\
100 grav -root -trail -decay \n\
117 starfish -root -blob \n\
127 kaleidescope -root \n\
129 xlyap -root -randomize \n\
133 interference -root \n\
134 truchet -root -randomize \n\
139 mono: rocks -root \n\
140 color: rocks -root -fg darksalmon \n\
142 mono: qix -root -linear -count 5 -size 200 -spread 30 \
143 -segments 75 -solid -xor \n\
145 color: attraction -root -mode polygons \n\
146 color: attraction -root -mode filled-splines -segments 0 \n\
147 color: attraction -root -glow -points 10 \n\
148 color: bubbles -root \n\
150 color: rd-bomb -root \n\
151 color: rd-bomb -root -speed 1 -size 0.1 \n\
153 PseudoColor: qix -root -count 4 -solid -transparent \n\
154 PseudoColor: qix -root -count 5 -solid -transparent -linear \
155 -segments 250 -size 100 \n\
157 @GL_KLUDGE_2@ gears -root \n\
158 @GL_KLUDGE_2@ superquadrics -root \n\
159 @GL_KLUDGE_2@ morph3d -root \n\
160 @GL_KLUDGE_2@ cage -root \n\
161 @GL_KLUDGE_2@ moebius -root \n\
162 @GL_KLUDGE_2@ stairs -root \n\
163 @GL_KLUDGE_2@ pipes -root \n\
164 @GL_KLUDGE_2@ sproingies -root \n\
165 @GL_KLUDGE_2@ rubik -root \n\
166 @GL_KLUDGE_2@ atlantis -root \n
169 ! A few of the hacks require OpenGL, and will only be built if you have it.
170 ! If your vendor doesn't provide real OpenGL, you might want to consider
171 ! building MesaGL, which is a free implementation -- GL is way cool.
173 ! Note that those hacks (gears, superquadratics, morph3d, cage, moebius,
174 ! stairs, pipes, sproingies, and rubik) tend to work best on a visual *half*
175 ! as deep as the depth of the screen, since that way, they can do
176 ! double-buffering -- try it and see, but you will probably find that you
177 ! should specify the deepest visual that is half as deep as the screen.
179 ! For example, on a screen that supports both 24-bit TrueColor and 12-bit
180 ! PseudoColor, the 12-bit visual will probably work best (this is true of
181 ! base-model SGI Indys: the 0x29 visual is the one you want.) Oddly, on SGI
182 ! O2s, (machines that have serious hardware support for GL) the 12-bit
183 ! PseudoColor visual looks awful (you get a black and white, flickery image.)
184 ! On these machines, the visual you want turns out to be 0x31 -- this is but
185 ! one of the eight 15-bit TrueColor visuals (yes, 8, and yes, 15) that O2s
186 ! provide. This is the only visual that works properly -- as far as xdpyinfo
187 ! is concerned, all of the 15-bit TrueColor visuals are identical, but some
188 ! flicker like mad, and some have deeply weird artifacts (hidden surfaces
189 ! show through!) I suppose these other visuals must be tied to some arcane
190 ! hardware feature... Your mileage, therefore, may vary dramatically.
192 ! Some other programs that you might want to track down (these work as
193 ! XScreenSaver helpers, but are not distributed with it):
195 ! xdaliclock -root -builtin2 \n\
198 ! xbouncebits ... \n\
199 ! ico -r -faces -sleep 1 -obj ico \n\
201 ! xmountains -b -M \n\
202 ! color: xfishtank -c black -d -r 2 \n\
204 ! xtacy is ok, but it only works on the default visual. We can satisfy
205 ! that constraint like so:
207 ! default: xtacy -root -delay 100 -funky -number 3 \n\
208 ! default: xtacy -root -delay 100 -gravity \n\
209 ! default: xtacy -root -delay 100 -mixer \n\
210 ! default: xtacy -root -delay 100 -taffy -pal 4 \n\
212 ! To display a randomized slideshow of images, you can do something like this:
214 ! default-n: xv -root -rmode 5 image-1.gif -quit
215 ! default-n: xv -root -rmode 5 image-2.gif -quit
216 ! default-n: xv -root -rmode 5 image-3.gif -quit
219 ! Note that we've used "default-n" as the visual name, rather than just
220 ! "default": this means "default visual, no install", that is, it's like
221 ! specifying the command-line arguments "-visual default -no-install".
222 ! This is necessary because, when XV is running in "-root" mode, it always
223 ! assumes that the default visual and colormap are being used, rather than
224 ! examining the window it is drawing on to see what visual and colormap it
225 ! has. If we didn't force the default visual to be used, xv would get an
226 ! X error. If we didn't force the default colormap to be installed, the
227 ! colors would be all wrong. "default-i" may also be used as a visual name
228 ! (meaning, "-visual default -install") but you probably won't ever need
231 ! XEarth is nice, too:
233 ! default-n: xearth -nostars -wait 0 -timewarp 400 -pos sunrel/38/-30
236 ! Some of the GL demos that SGI ships work with XScreenSaver; most don't.
237 ! XScreenSaver includes a program (not built or installed by default)
238 ! called "xscreensaver-sgigl". To use the SGI demos with XScreenSaver,
239 ! build that program, and use it to launch the SGI demos. For example,
240 ! on Irix 6.2, you can do this:
242 ! xscreensaver-sgigl /usr/demos/bin/ep -S
243 ! xscreensaver-sgigl /usr/demos/bin/bongo
245 ! On Irix 6.3, things have moved, so you need to do it like this:
247 ! xscreensaver-sgigl /usr/sbin/ep -S
249 ! You can also use the "ant" demo, but first you need to wrap a shell script
250 ! around it that cds to its home directory, so that it can find its files;
251 ! and also pass it the -S argument, to prevent it from forking.
254 ! Also, since these actually end up mapping their own windows instead of
255 ! drawing on the XScreenSaver-provided root, when they are being run from
256 ! demo-mode, you can't pop up the demo-mode dialog just by clicking the
257 ! mouse: you must first type ESC to make the SGI programs exit. This sucks.
258 ! Things should work properly when they are being run by xscreensaver in
259 ! non-demo-mode, however.
261 ! Basically, the SGI demo writers went out of their way to make my life hell.
265 !=============================================================================
267 ! You probably don't want to change anything after this point.
269 !=============================================================================
272 ! Resources for the Motif dialog boxes:
274 *fontList: *-helvetica-medium-r-*-*-*-120-*-*-*-iso8859-1
275 *demoDialog*label1.fontList: *-helvetica-medium-r-*-*-*-140-*-*-*-iso8859-1
276 *passwdDialog*fontList: *-helvetica-medium-r-*-*-*-140-*-*-*-iso8859-1
277 *XmTextField.fontList: *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
278 *passwdDialog.passwdText.fontList: *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
279 XScreenSaver*XmList.fontList: *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
280 ! Need to fully-qualify the preceeding in the case of of *sgiMode.
282 *XmDialogShell*foreground: #000000
283 *XmDialogShell*background: #E5E5E5
284 *XmDialogShell*XmTextField.foreground: #000000
285 *XmDialogShell*XmTextField.background: #FFFFFF
286 *XmDialogShell*demoList.foreground: #000000
287 *XmDialogShell*demoList.background: #FFFFFF
289 ! Need to fully-qualify the following in the case of of *sgiMode.
290 XScreenSaver*XmDialogShell*rogerLabel.foreground: #CD0000
291 XScreenSaver*XmDialogShell*rogerLabel.background: #FFFFFF
293 *XmDialogShell.title: XScreenSaver
294 *allowShellResize: True
297 ! This doesn't work. Motif ignores it if there is a scroll-list!
298 *demoDialog.maxWidth: 600
300 *label1.labelString: XScreenSaver %s
301 *label1.label: XScreenSaver %s
302 *label2.labelString: Copyright © 1991-1998 by Jamie Zawinski <jwz@netscape.com>
303 *label2.label: Copyright © 1991-1998 by Jamie Zawinski <jwz@netscape.com>
304 *demoList.visibleItemCount: 10
305 *demoList.automaticSelection: True
306 *next.labelString: Run Next
307 *prev.labelString: Run Previous
308 *edit.labelString: Preferences
309 *done.labelString: Exit Demo Mode
310 *restart.labelString: Reinitialize
312 *resourcesLabel.labelString: XScreenSaver Parameters
314 *timeoutLabel.labelString: Saver Timeout
315 *cycleLabel.labelString: Cycle Timeout
316 *fadeSecondsLabel.labelString: Fade Duration
317 *fadeTicksLabel.labelString: Fade Ticks
318 *lockLabel.labelString: Lock Timeout
319 *passwdLabel.labelString: Password Timeout
320 *resourcesForm*XmTextField.columns: 8
322 *verboseToggle.labelString: Verbose
323 *cmapToggle.labelString: Install Colormap
324 *fadeToggle.labelString: Fade Colormap
325 *unfadeToggle.labelString: Unfade Colormap
326 *lockToggle.labelString: Require Password
327 *resourcesDone.labelString: OK
328 *resourcesCancel.labelString: Cancel
330 *passwdDialog.title: Password
331 *passwdLabel1.labelString: XScreenSaver %s
332 *passwdLabel2.labelString: This display is locked.
333 *passwdLabel3.labelString: Please type %s's password to unlock it.
334 *passwdDone.labelString: OK
335 *passwdCancel.labelString: Cancel
337 *passwdLabel1.alignment: ALIGNMENT_BEGINNING
338 *passwdLabel2.alignment: ALIGNMENT_BEGINNING
339 *passwdLabel3.alignment: ALIGNMENT_BEGINNING
340 *rogerLabel.width: 150
342 ! Disable Motif drag-and-drop in dialog boxes. This is kind of pathetic, but
343 ! in some older versions of Motif, most any attempt to drag cause immediate
344 ! flaming death from above. This *should* rip the legs off that bug.
346 XScreenSaver*dragInitiatorProtocolStyle: DRAG_NONE
347 XScreenSaver*dragReceiverProtocolStyle: DRAG_NONE
351 ! Resources for the dialog boxes using the abominable Athena widgets:
353 *demo_dialog*font: *-helvetica-bold-r-*-*-*-120-*-*-*-iso8859-1
354 *resources_dialog*font: *-helvetica-bold-r-*-*-*-120-*-*-*-iso8859-1
355 *passwd_dialog*font: *-helvetica-bold-r-*-*-*-120-*-*-*-iso8859-1
356 *demo_dialog*label1.font: *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
357 *resources_dialog*label1.font: *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
358 XScreenSaver.demo_dialog*List.font: \
359 *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
361 ! This is a hack to make the typed password invisible.
362 ! Surely someone can do better than this...
363 XScreenSaver.passwd_dialog*passwd_form.value*font: *nil*
365 XScreenSaver.demo_dialog*foreground: #000000
366 XScreenSaver.demo_dialog*background: #E5E5E5
367 XScreenSaver.demo_dialog*List.background: #FFFFFF
368 XScreenSaver.demo_dialog*Scrollbar.background: #D9D9D9
369 XScreenSaver.demo_dialog*Command.background: #D9D9D9
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
377 *resources_dialog*Dialog.value.translations: #override\n\
378 <Key>Return: beginning-of-line()\n
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
387 *demo_dialog*viewport.width: 400
388 *demo_dialog*viewport.height: 200
391 *Label.borderWidth: 0
392 *resources_dialog*Dialog.borderWidth: 0
394 *demo_dialog*next.label: Run Next
395 *demo_dialog*prev.label: Run Previous
396 *demo_dialog*edit.label: Preferences
397 *demo_dialog*done.label: Exit Demo Mode
398 *demo_dialog*restart.label: Reinitialize
400 *resources_dialog*timeout.label: Saver Timeout:
401 *resources_dialog*cycle.label: Cycle Timeout:
402 *resources_dialog*fade.label: Fade Duration:
403 *resources_dialog*ticks.label: Fade Ticks:
404 *resources_dialog*lockTime.label: Lock Timeout:
405 *resources_dialog*passwdTime.label: Password Timeout:
407 *resources_dialog*label1.label: XScreenSaver Parameters
408 *resources_dialog*buttonbox.verbose.label: Verbose
409 *resources_dialog*buttonbox.cmap.label: Install Colormap
410 *resources_dialog*buttonbox.fade.label: Fade Colormap
411 *resources_dialog*buttonbox.unfade.label: Unfade Colormap
412 *resources_dialog*buttonbox.lock.label: Require Password
413 *resources_dialog*done.label: OK
414 *resources_dialog*cancel.label: Cancel
416 *passwd_dialog*label1.label: XScreenSaver %s
417 *passwd_dialog*label2.label: This display is locked.
418 *passwd_dialog*label3.label: Please type %s's password to unlock it.
419 *passwd_dialog*ok.label: OK
420 *passwd_dialog*cancel.label: Cancel
421 *passwd_dialog*passwd_form*label.label: Enter password:
422 *passwd_dialog*Dialog.label: Enter password:
423 *passwd_dialog*passwd_form*Text.width: 200
424 *passwd_dialog*roger.width: 150
425 *passwd_dialog*roger.height: 150
426 *passwd_dialog*roger.borderWidth: 1
429 ! You probably won't need to change these. They are only used if no server
430 ! extension is in use.
432 XScreenSaver.pointerPollTime: 5
433 XScreenSaver.initialDelay: 0
434 XScreenSaver.windowCreationTimeout: 30
435 XScreenSaver.bourneShell: /bin/sh