4 ! a screen saver and locker for the X window system
9 ! See "man xscreensaver" for more info. The latest version is always
10 ! available at http://people.netscape.com/jwz/xscreensaver/
26 *textForeground: Yellow
27 *textBackground: Black
29 *font: *-medium-r-*-140-*-m-*
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.)
36 *installColormap: True
39 ! Any program which can draw on the root window will work as a screensaver.
40 ! The following resource enumerates them.
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.
45 ! Each line is an `sh' command.
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:".)
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.)
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
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 \
75 rorschach -root -offset 7 \n\
83 blitspin -root -grab \n\
99 grav -root -trail -decay \n\
116 starfish -root -blob \n\
126 kaleidescope -root \n\
128 xlyap -root -random \n\
132 mono: rocks -root \n\
133 color: rocks -root -fg darksalmon \n\
135 mono: qix -root -linear -count 5 -size 200 -spread 30 \
136 -segments 75 -solid -xor \n\
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\
143 color: rd-bomb -root \n\
144 color: rd-bomb -root -speed 1 -size 0.1 \n\
146 PseudoColor: qix -root -count 4 -solid -transparent \n\
147 PseudoColor: qix -root -count 5 -solid -transparent -linear \
148 -segments 250 -size 100 \n\
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
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.
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.
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.
185 ! Some other programs that you might want to track down (these work as
186 ! XScreenSaver helpers, but are not distributed with it):
188 ! xdaliclock -root -builtin2 \n\
191 ! xbouncebits ... \n\
192 ! ico -r -faces -sleep 1 -obj ico \n\
194 ! xmountains -b -M \n\
195 ! color: xfishtank -c black -d -r 2 \n\
197 ! xtacy is ok, but it only works on the default visual. We can satisfy
198 ! that constraint like so:
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\
205 ! To display a randomized slideshow of images, you can do something like this:
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
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
224 ! XEarth is nice, too:
226 ! default-n: xearth -nostars -wait 0 -timewarp 400 -pos sunrel/38/-30
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:
235 ! xscreensaver-sgigl /usr/demos/bin/ep -S
236 ! xscreensaver-sgigl /usr/demos/bin/bongo
238 ! On Irix 6.3, things have moved, so you need to do it like this:
240 ! xscreensaver-sgigl /usr/sbin/ep -S
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.
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.
254 ! Basically, the SGI demo writers went out of their way to make my life hell.
258 !=============================================================================
260 ! You probably don't want to change anything after this point.
262 !=============================================================================
265 ! Resources for the Motif dialog boxes:
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
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
283 *XmDialogShell.title: XScreenSaver
284 *allowShellResize: True
287 ! This doesn't work. Motif ignores it if there is a scroll-list!
288 *demoDialog.maxWidth: 600
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
302 *resourcesLabel.labelString: XScreenSaver Parameters
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
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
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
327 *passwdLabel1.alignment: ALIGNMENT_BEGINNING
328 *passwdLabel2.alignment: ALIGNMENT_BEGINNING
329 *passwdLabel3.alignment: ALIGNMENT_BEGINNING
330 *rogerLabel.width: 150
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.
336 XScreenSaver*dragInitiatorProtocolStyle: DRAG_NONE
337 XScreenSaver*dragReceiverProtocolStyle: DRAG_NONE
341 ! Resources for the dialog boxes using the abominable Athena widgets:
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
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*
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
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
366 *resources_dialog*Dialog.value.translations: #override\n\
367 <Key>Return: beginning-of-line()\n
369 *passwd_dialog*foreground: black
370 *passwd_dialog*background: gray90
371 *passwd_dialog*Text*background: white
373 *demo_dialog*viewport.width: 400
374 *demo_dialog*viewport.height: 200
377 *Label.borderWidth: 0
378 *resources_dialog*Dialog.borderWidth: 0
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
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:
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
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
417 ! You probably won't need to change these. They are only used if no server
418 ! extension is in use.
422 *windowCreationTimeout: 30
424 *bourneShell: /bin/sh