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\
98 grav -root -trail -decay \n\
115 starfish -root -blob \n\
125 kaleidescope -root \n\
127 xlyap -root -random \n\
129 mono: rocks -root \n\
130 color: rocks -root -fg darksalmon \n\
132 mono: qix -root -linear -count 5 -size 200 -spread 30 \
133 -segments 75 -solid -xor \n\
135 color: attraction -root -mode polygons \n\
136 color: attraction -root -mode filled-splines -segments 0 \n\
137 color: attraction -root -glow -points 10 \n\
138 color: bubbles -root \n\
140 color: rd-bomb -root \n\
141 color: rd-bomb -root -speed 1 -size 0.1 \n\
143 PseudoColor: qix -root -count 4 -solid -transparent \n\
144 PseudoColor: qix -root -count 5 -solid -transparent -linear \
145 -segments 250 -size 100 \n\
147 @GL_KLUDGE_2@ gears -root \n\
148 @GL_KLUDGE_2@ superquadrics -root \n\
149 @GL_KLUDGE_2@ morph3d -root \n\
150 @GL_KLUDGE_2@ escher -root \n\
151 @GL_KLUDGE_2@ pipes -root \n\
152 @GL_KLUDGE_2@ sproingies -root \n\
153 @GL_KLUDGE_2@ rubik -root \n
156 ! A few of the hacks require OpenGL, and will only be built if you have it.
157 ! If your vendor doesn't provide real OpenGL, you might want to consider
158 ! building MesaGL, which is a free implementation -- GL is way cool.
160 ! Note that those hacks (gears, superquadratics, morph3d, escher, pipes,
161 ! sproingies, and rubik) tend to work best on a visual *half* as deep as the
162 ! depth of the screen, since that way, they can do double-buffering -- try it
163 ! and see, but you will probably find that you should specify the deepest
164 ! visual that is half as deep as the screen.
166 ! For example, on a screen that supports both 24-bit TrueColor and 12-bit
167 ! PseudoColor, the 12-bit visual will probably work best (this is true of
168 ! base-model SGI Indys: the 0x29 visual is the one you want.) Oddly, on SGI
169 ! O2s, (machines that have serious hardware support for GL) the 12-bit
170 ! PseudoColor visual looks awful (you get a black and white, flickery image.)
171 ! On these machines, the visual you want turns out to be 0x31 -- this is but
172 ! one of the eight 15-bit TrueColor visuals (yes, 8, and yes, 15) that O2s
173 ! provide. This is the only visual that works properly -- as far as xdpyinfo
174 ! is concerned, all of the 15-bit TrueColor visuals are identical, but some
175 ! flicker like mad, and some have deeply weird artifacts (hidden surfaces
176 ! show through!) I suppose these other visuals must be tied to some arcane
177 ! hardware feature... Your mileage, therefore, may vary dramatically.
179 ! Some other programs that you might want to track down (these work as
180 ! XScreenSaver helpers, but are not distributed with it):
182 ! xdaliclock -root -builtin2 \n\
185 ! xbouncebits ... \n\
186 ! ico -r -faces -sleep 1 -obj ico \n\
188 ! xmountains -b -M \n\
189 ! color: xfishtank -c black -d -r 2 \n\
191 ! xtacy is ok, but it only works on the default visual. We can satisfy
192 ! that constraint like so:
194 ! default: xtacy -root -delay 100 -funky -number 3 \n\
195 ! default: xtacy -root -delay 100 -gravity \n\
196 ! default: xtacy -root -delay 100 -mixer \n\
197 ! default: xtacy -root -delay 100 -taffy -pal 4 \n\
199 ! To display a randomized slideshow of images, you can do something like this:
201 ! default-n: xv -root -rmode 5 image-1.gif -quit
202 ! default-n: xv -root -rmode 5 image-2.gif -quit
203 ! default-n: xv -root -rmode 5 image-3.gif -quit
206 ! Note that we've used "default-n" as the visual name, rather than just
207 ! "default": this means "default visual, no install", that is, it's like
208 ! specifying the command-line arguments "-visual default -no-install".
209 ! This is necessary because, when XV is running in "-root" mode, it always
210 ! assumes that the default visual and colormap are being used, rather than
211 ! examining the window it is drawing on to see what visual and colormap it
212 ! has. If we didn't force the default visual to be used, xv would get an
213 ! X error. If we didn't force the default colormap to be installed, the
214 ! colors would be all wrong. "default-i" may also be used as a visual name
215 ! (meaning, "-visual default -install") but you probably won't ever need
218 ! XEarth is nice, too:
220 ! default-n: xearth -nostars -wait 0 -timewarp 400 -pos sunrel/38/-30
223 ! Some of the GL demos that SGI ships work with XScreenSaver; most don't.
224 ! XScreenSaver includes a program (not built or installed by default)
225 ! called "xscreensaver-sgigl". To use the SGI demos with XScreenSaver,
226 ! build that program, and use it to launch the SGI demos. For example,
227 ! on Irix 6.2, you can do this:
229 ! xscreensaver-sgigl /usr/demos/bin/ep -S
230 ! xscreensaver-sgigl /usr/demos/bin/bongo
231 ! xscreensaver-sgigl /usr/demos/bin/atlantis
233 ! On Irix 6.3, things have moved, so you need to do it like this:
235 ! xscreensaver-sgigl /usr/sbin/ep -S
237 ! You can also use the "ant" demo, but first you need to wrap a shell script
238 ! around it that cds to its home directory, so that it can find its files;
239 ! and also pass it the -S argument, to prevent it from forking. The "atlantis"
240 ! hack *almost* works; but since it doesn't have an option to prevent it from
241 ! forking, xscreensaver is unable to kill it, so when you come in the next
242 ! morning, you'll find dozens of "atlantis" processes still running.
245 ! Also, since these actually end up mapping their own windows instead of
246 ! drawing on the XScreenSaver-provided root, when they are being run from
247 ! demo-mode, you can't pop up the demo-mode dialog just by clicking the
248 ! mouse: you must first type ESC to make the SGI programs exit. This sucks.
249 ! Things should work properly when they are being run by xscreensaver in
250 ! non-demo-mode, however.
252 ! Basically, the SGI demo writers went out of their way to make my life hell.
256 !=============================================================================
258 ! You probably don't want to change anything after this point.
260 !=============================================================================
263 ! Resources for the Motif dialog boxes:
265 *fontList: *-helvetica-medium-r-*-*-*-120-*-*-*-iso8859-1
266 *demoDialog*label1.fontList: *-helvetica-medium-r-*-*-*-140-*-*-*-iso8859-1
267 *passwdDialog*fontList: *-helvetica-medium-r-*-*-*-140-*-*-*-iso8859-1
268 *XmList.fontList: *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
269 *XmTextField.fontList: *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
270 *passwdDialog.passwdText.fontList: *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
272 *XmDialogShell*foreground: black
273 *XmDialogShell*background: gray90
274 *XmDialogShell*XmTextField.foreground: black
275 *XmDialogShell*XmTextField.background: white
276 *XmDialogShell*demoList.foreground: black
277 *XmDialogShell*demoList.background: white
278 *XmDialogShell*rogerLabel.foreground: red3
279 *XmDialogShell*rogerLabel.background: white
281 *XmDialogShell.title: XScreenSaver
282 *allowShellResize: True
285 ! This doesn't work. Motif ignores it if there is a scroll-list!
286 *demoDialog.maxWidth: 600
288 *label1.labelString: XScreenSaver %s
289 *label1.label: XScreenSaver %s
290 *label2.labelString: Copyright © 1991-1997 by Jamie Zawinski <jwz@netscape.com>
291 *label2.label: Copyright © 1991-1997 by Jamie Zawinski <jwz@netscape.com>
292 *demoList.visibleItemCount: 10
293 *demoList.automaticSelection: True
294 *next.labelString: Run Next
295 *prev.labelString: Run Previous
296 *edit.labelString: Edit Parameters
297 *done.labelString: Exit Demo Mode
298 *restart.labelString: Reinitialize
300 *resourcesLabel.labelString: XScreenSaver Parameters
302 *timeoutLabel.labelString: Saver Timeout
303 *cycleLabel.labelString: Cycle Timeout
304 *fadeSecondsLabel.labelString: Fade Duration
305 *fadeTicksLabel.labelString: Fade Ticks
306 *lockLabel.labelString: Lock Timeout
307 *passwdLabel.labelString: Password Timeout
308 *resourcesForm*XmTextField.columns: 8
310 *verboseToggle.labelString: Verbose
311 *cmapToggle.labelString: Install Colormap
312 *fadeToggle.labelString: Fade Colormap
313 *unfadeToggle.labelString: Unfade Colormap
314 *lockToggle.labelString: Require Password
315 *resourcesDone.labelString: Done
316 *resourcesCancel.labelString: Cancel
318 *passwdDialog.title: Password
319 *passwdLabel1.labelString: XScreenSaver %s
320 *passwdLabel2.labelString: This display is locked.
321 *passwdLabel3.labelString: Please type %s's password to unlock it.
322 *passwdDone.labelString: Done
323 *passwdCancel.labelString: Cancel
325 *passwdLabel1.alignment: ALIGNMENT_BEGINNING
326 *passwdLabel2.alignment: ALIGNMENT_BEGINNING
327 *passwdLabel3.alignment: ALIGNMENT_BEGINNING
328 *rogerLabel.width: 150
330 ! Disable Motif drag-and-drop in dialog boxes. This is kind of pathetic, but
331 ! in some older versions of Motif, most any attempt to drag cause immediate
332 ! flaming death from above. This *should* rip the legs off that bug.
334 XScreenSaver*dragInitiatorProtocolStyle: DRAG_NONE
335 XScreenSaver*dragReceiverProtocolStyle: DRAG_NONE
339 ! Resources for the dialog boxes using the abominable Athena widgets:
341 *demo_dialog*font: *-helvetica-bold-r-*-*-*-120-*-*-*-iso8859-1
342 *resources_dialog*font: *-helvetica-bold-r-*-*-*-120-*-*-*-iso8859-1
343 *passwd_dialog*font: *-helvetica-bold-r-*-*-*-120-*-*-*-iso8859-1
344 *demo_dialog*label1.font: *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
345 *resources_dialog*label1.font: *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
346 *demo_dialog*List.font: *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
348 ! This is a hack to make the typed password invisible.
349 ! Surely someone can do better than this...
350 *passwd_dialog*passwd_form.value*font: *nil*
352 *demo_dialog*foreground: black
353 *demo_dialog*background: gray90
354 *demo_dialog*List.background: white
355 *demo_dialog*Scrollbar.background: gray85
356 *demo_dialog*Command.background: gray85
358 *resources_dialog*foreground: black
359 *resources_dialog*background: gray90
360 *resources_dialog*Command.background: gray85
361 *resources_dialog*Toggle.background: gray85
362 *resources_dialog*Text*background: white
364 *resources_dialog*Dialog.value.translations: #override\n\
365 <Key>Return: beginning-of-line()\n
367 *passwd_dialog*foreground: black
368 *passwd_dialog*background: gray90
369 *passwd_dialog*Text*background: white
371 *demo_dialog*viewport.width: 400
372 *demo_dialog*viewport.height: 200
375 *Label.borderWidth: 0
376 *resources_dialog*Dialog.borderWidth: 0
378 *demo_dialog*next.label: Run Next
379 *demo_dialog*prev.label: Run Previous
380 *demo_dialog*edit.label: Edit Parameters
381 *demo_dialog*done.label: Exit Demo Mode
382 *demo_dialog*restart.label: Reinitialize
384 *resources_dialog*timeout.label: Saver Timeout:
385 *resources_dialog*cycle.label: Cycle Timeout:
386 *resources_dialog*fade.label: Fade Duration:
387 *resources_dialog*ticks.label: Fade Ticks:
388 *resources_dialog*lockTime.label: Lock Timeout:
389 *resources_dialog*passwdTime.label: Password Timeout:
391 *resources_dialog*label1.label: XScreenSaver Parameters
392 *resources_dialog*buttonbox.verbose.label: Verbose
393 *resources_dialog*buttonbox.cmap.label: Install Colormap
394 *resources_dialog*buttonbox.fade.label: Fade Colormap
395 *resources_dialog*buttonbox.unfade.label: Unfade Colormap
396 *resources_dialog*buttonbox.lock.label: Require Password
397 *resources_dialog*done.label: Done
398 *resources_dialog*cancel.label: Cancel
400 *passwd_dialog*label1.label: XScreenSaver %s
401 *passwd_dialog*label2.label: This display is locked.
402 *passwd_dialog*label3.label: Please type %s's password to unlock it.
403 *passwd_dialog*ok.label: Done
404 *passwd_dialog*cancel.label: Cancel
405 *passwd_dialog*passwd_form*label.label: Enter password:
406 *passwd_dialog*Dialog.label: Enter password:
407 *passwd_dialog*passwd_form*Text.width: 200
408 *passwd_dialog*roger.width: 150
409 *passwd_dialog*roger.height: 150
410 *passwd_dialog*roger.foreground: red3
411 *passwd_dialog*roger.background: white
412 *passwd_dialog*roger.borderWidth: 1
415 ! You probably won't need to change these. They are only used if no server
416 ! extension is in use.
420 *windowCreationTimeout: 30
422 *bourneShell: /bin/sh