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://www.jwz.org/xscreensaver/
14 ! These resources, when placed in the system-wide app-defaults directory
15 ! (e.g., /usr/lib/X11/app-defaults/XScreenSaver) will provide the default
16 ! settings for new users. However, if you have a ".xscreensaver" file in
17 ! your home directory, the settings in that file take precedence.
38 *overlayTextForeground: #FFFF00
39 *overlayTextBackground: #000000
41 *font: *-medium-r-*-140-*-m-*
43 ! The default is to use these extensions if available (as noted.)
44 *sgiSaverExtension: True
45 *mitSaverExtension: False
49 ! This is what the "Demo" button on the splash screen runs (/bin/sh syntax.)
50 *demoCommand: xscreensaver-demo
52 ! This is what the "Prefs" button on the splash screen runs (/bin/sh syntax.)
53 *prefsCommand: xscreensaver-demo -prefs
55 ! This is the URL that the "Help" button on the splash screen loads.
56 *helpURL: http://www.jwz.org/xscreensaver/man.html
58 ! This is how the "Help" button loads URLs (/bin/sh syntax.)
59 ! The "helpURL" will be substituted for up to two occurrences of "%s".
60 *loadURL: netscape -remote 'openURL(%s)' || netscape '%s'
62 ! This is what the "Manual" button in xscreensaver-demo runs (/bin/sh syntax.)
63 *manualCommand: xterm +sb -fg black -bg gray75 -T '%s manual' \
64 -e /bin/sh -c 'man "%s" || read foo'
65 ! Gnome folks might prefer this:
66 !*manualCommand: gnome-help-browser 'man:%s'
69 ! The format used for printing the date and time in the password dialog box
70 ! (see the strftime(3) manual page for details.)
71 *dateFormat: %d-%b-%y (%a); %I:%M %p
72 ! To show the time only:
73 ! *dateFormat: %I:%M %p
78 ! Turning on "installColormap" interacts erratically with twm and tvtwm,
79 ! but seems to work fine with mwm and olwm. Try it and see. If your
80 ! screen turns some color other than black, the window manager is buggy,
81 ! and you need to set this resource to False (or get a WM that works.)
83 *installColormap: True
86 ! Any program which can draw on the root window will work as a screensaver.
87 ! The following resource enumerates them.
89 ! Programs are separated by newlines (specified in resource files with \n).
90 ! Lines may be continued with a lone \ at the end of the line.
92 ! Each line is an `sh' command.
94 ! If the first (non-blank) character on the line is "-", then that means
95 ! that this command is disabled: it's still in the list, but it won't ever
96 ! be used. (This is just to make it easy to disable and then re-enable
99 ! If the first word on the line is the name of a visual followed by a
100 ! colon, then that visual will be used for the program, if it is available.
101 ! If no such visual is available, then the program will be skipped. In
102 ! this way, you can specify that you want certain programs to run only
103 ! on color screens, and others only on mono screens, by making use of the
104 ! magic visual names "color" and "mono". Likewise, if some hacks prefer
105 ! colormaps, but others prefer 24-bit windows, that also can be arranged
106 ! (in this case, by using "PseudoColor:" versus "TrueColor:".)
108 ! Some of the screenhacks are written using OpenGL. OpenGL programs are
109 ! a bit different than normal X programs, in that they prefer visuals that
110 ! are *half* as deep as the screen. You can tell xscreensaver to select a
111 ! good visual for a GL program by using the magic visual name "GL".
113 ! All programs must be launched in such a way that they draw on the root
114 ! window; they should not be spawned in the background with "&". If shell
115 ! metacharacters are used, they must be understandable to `sh', not `csh'
116 ! (the $SHELL variable is not consulted, for unfortunate but good reasons.)
118 ! Be sure to check out Demo Mode: run the `xscreensaver-demo' program to
119 ! edit the current list of programs interactively, try out the various modes,
120 ! and change other parameters. See the man page for details.
123 "Qix (solid)" qix -root -solid -delay 0 -segments 100 \n\
124 "Qix (transparent)" qix -root -count 4 -solid -transparent \n\
125 "Qix (linear)" qix -root -count 5 -solid -transparent \
126 -linear -segments 250 -size 100 \n\
127 - mono: "Qix (xor)" qix -root -linear -count 5 -size 200 \
128 -spread 30 -segments 75 -solid -xor \n\
130 "Attraction (balls)" attraction -root -mode balls \n\
131 "Attraction (lines)" attraction -root -mode lines -points 3 \
133 - "Attraction (poly)" attraction -root -mode polygons \n\
134 "Attraction (splines)" attraction -root -mode splines -segments \
136 "Attraction (orbital)" attraction -root -mode lines -radius 300 \
137 -orbit -vmult 0.5 \n\
143 rorschach -root -offset 7 \n\
148 slidescreen -root \n\
149 decayscreen -root \n\
151 blitspin -root -grab \n\
155 "Ripples (oily)" ripples -root -oily -light 2 \n\
156 "Ripples (stir)" ripples -root -oily -light 2 -stir \n\
157 "Ripples (desktop)" ripples -root -water -light 6 \n\
172 "Grav (trails)" grav -root -trail -decay \n\
187 goop -root -max-velocity 0.5 -elasticity \
190 "Starfish (blob)" starfish -root -blob \n\
193 coral -root -delay 0 \n\
195 triangle -root -delay 1 \n\
202 kaleidescope -root \n\
204 xlyap -root -randomize \n\
208 interference -root \n\
209 truchet -root -randomize \n\
215 "RD-Bomb (mobile)" rd-bomb -root -speed 1 -size 0.1 \n\
224 "Wander (spots)" wander -root -advance 0 -size 10 -circles \
225 True -length 10000 -reset 100000 \n\
229 petri -root -size 2 -count 20 \n\
230 "Petri 2" petri -root -minlifespeed 0.02 \
231 -maxlifespeed 0.03 -minlifespan 1 \
232 -maxlifespan 1 -instantdeathchan 0 \
233 -minorchan 0 -anychan 0.3 \n\
238 color: bubbles -root \n\
239 default-n: webcollage -root \n\
240 default-n: "WebCollage (whacked)" \
241 webcollage -root -filter \
242 'vidwhacker -stdin -stdout' \n\
243 - default-n: vidwhacker -root \n\
245 @GL_KLUDGE@ GL: gears -root \n\
246 @GL_KLUDGE@ GL: superquadrics -root \n\
247 @GL_KLUDGE@ GL: morph3d -root \n\
248 @GL_KLUDGE@ GL: cage -root \n\
249 @GL_KLUDGE@ GL: moebius -root \n\
250 @GL_KLUDGE@ GL: stairs -root \n\
251 @GL_KLUDGE@ GL: pipes -root \n\
252 @GL_KLUDGE@ GL: sproingies -root \n\
253 @GL_KLUDGE@ GL: rubik -root \n\
254 @GL_KLUDGE@ GL: atlantis -root \n\
255 @GL_KLUDGE@ GL: lament -root \n\
256 @GL_KLUDGE@ GL: bubble3d -root \n\
257 @GL_KLUDGE@ GL: glplanet -root \n\
258 @GL_KLUDGE@ GL: pulsar -root \n\
259 - GL: "Pulsar (textures)" \
260 pulsar -root -texture -mipmap \
261 -texture_quality -light -fog \n\
262 @GLE_KLUDGE@GL: extrusion -root \n\
263 @GL_KLUDGE@ GL: sierpinski3d -root \n\
265 - xdaliclock -root -builtin3 -cycle \n\
266 - default-n: xearth -nofork -nostars -ncolors 50 \
267 -night 3 -wait 0 -timewarp 400.0 -pos \
269 - ssystem -fullscreen :32 \n\
270 - xmountains -b -M -Z 0 -r 1 \n\
271 - "XMountains (top)" xmountains -b -M -Z 0 -r 1 -m \n\
272 - xaos -root -autopilot -incoloring -1 \
273 -nogui -outcoloring -1 \n\
277 ! To display a randomized slideshow of images, you can do something like this:
279 ! default-n: "Slideshow" xv -root -rmode 5 -random -viewonly \
280 ! -wloop -wait 30 $HOME/bitmaps/*.jpg \n\
282 ! or, if you prefer "xli" to "xv", like this: (but note that xli's "-delay"
283 ! option doesn't work in conjunction with "-onroot", so you need to add a
284 ! line for each image individually... "xv" is better in this respect.)
286 ! default-n: xli -quiet -onroot -center -border black \
287 ! $HOME/bitmaps/pic1.jpg \n\
288 ! default-n: xli -quiet -onroot -center -border black \
289 ! $HOME/bitmaps/pic2.jpg \n\
290 ! default-n: xli -quiet -onroot -center -border black \
291 ! $HOME/bitmaps/pic3.jpg \n\
293 ! Note that we've used "default-n" as the visual name, rather than just
294 ! "default": this means "default visual, no install", that is, it's like
295 ! specifying the command-line arguments "-visual default -no-install".
296 ! This is necessary because, when XV or XLI arerunning in "-root" mode, they
297 ! always assume that the default visual and colormap are being used, rather
298 ! than examining the window it is drawing on to see what visual and colormap
299 ! it has. If we didn't force the default visual to be used, we would get an
300 ! X error. If we didn't force the default colormap to be installed, the
301 ! colors would be all wrong. "default-i" may also be used as a visual name
302 ! (meaning, "-visual default -install") but you probably won't ever need
306 ! Some of the GL demos that SGI ships work with XScreenSaver; most don't.
307 ! XScreenSaver includes a program (not built or installed by default)
308 ! called "xscreensaver-sgigl". To use the SGI demos with XScreenSaver,
309 ! build that program, and use it to launch the SGI demos. For example,
310 ! on Irix 6.2, you can do this:
312 ! xscreensaver-sgigl /usr/demos/bin/ep -S
313 ! xscreensaver-sgigl /usr/demos/bin/bongo
315 ! On Irix 6.3, things have moved, so you need to do it like this:
317 ! xscreensaver-sgigl /usr/sbin/ep -S
319 ! You can also use the "ant" demo, but first you need to wrap a shell script
320 ! around it that cds to its home directory, so that it can find its files;
321 ! and also pass it the -S argument, to prevent it from forking. What a mess!
322 ! Basically, the SGI demo writers went out of their way to make my life hell.
326 !=============================================================================
328 ! You probably don't want to change anything after this point.
330 !=============================================================================
333 XScreenSaver.pointerPollTime: 5
334 XScreenSaver.initialDelay: 0
335 XScreenSaver.windowCreationTimeout: 30
336 XScreenSaver.bourneShell: /bin/sh
339 ! Resources for the password and splash-screen dialog boxes of
340 ! the "xscreensaver" daemon.
342 *Dialog.headingFont: *-times-bold-r-*-*-*-180-*-*-*-iso8859-1
343 *Dialog.bodyFont: *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
344 *Dialog.labelFont: *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
345 *Dialog.buttonFont: *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
346 *Dialog.dateFont: *-courier-medium-r-*-*-*-80-*-*-*-iso8859-1
347 *Dialog.foreground: #000000
348 *Dialog.background: #BFBFBF
349 *Dialog.Button.foreground: #000000
350 *Dialog.Button.background: #D0D0D0
351 *Dialog.text.foreground: #000000
352 *Dialog.text.background: #FFFFFF
353 *Dialog.logo.foreground: #FF0000
354 *Dialog.logo.background: #FFFFFF
355 *Dialog.topShadowColor: #E7E7E7
356 *Dialog.bottomShadowColor: #737373
357 *Dialog.logo.width: 200
358 *Dialog.logo.height: 200
359 *Dialog.internalBorderWidth: 30
360 *Dialog.borderWidth: 1
361 *Dialog.shadowThickness: 4
363 *passwd.heading.label: XScreenSaver %s
364 *passwd.body.label: This display is locked.
365 *passwd.user.label: User:
366 *passwd.passwd.label: Password:
367 *passwd.passwdFont: *-courier-medium-r-*-*-*-140-*-*-*-iso8859-1
368 *passwd.thermometer.width: 8
370 *splash.heading.label: XScreenSaver %s
371 *splash.body.label: Copyright © 1991-1999 by
372 *splash.body2.label: Jamie Zawinski <jwz@jwz.org>
373 *splash.demo.label: Demo
374 *splash.prefs.label: Prefs
375 *splash.help.label: Help
378 ! Resources for the Motif dialog boxes of the "xscreensaver-demo" program.
380 *fontList: *-helvetica-medium-r-*-*-*-120-*-*-*-iso8859-1
381 *demoDialog*label1.fontList: *-helvetica-medium-r-*-*-*-140-*-*-*-iso8859-1
382 *cmdText.fontList: *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
383 *label0.fontList: *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
384 *doc.fontList: *-helvetica-medium-r-*-*-*-100-*-*-*-iso8859-1
388 *XmTextField.foreground: #000000
389 *XmTextField.background: #FFFFFF
390 *list.foreground: #000000
391 *list.background: #FFFFFF
393 *ApplicationShell.title: XScreenSaver
394 *warning.title: XScreenSaver
395 *warning_popup.title: XScreenSaver
396 *allowShellResize: True
399 *menubar*file.labelString: File
400 *menubar*file.mnemonic: F
401 *file.blank.labelString: Blank Screen Now
402 *file.blank.mnemonic: B
403 *file.lock.labelString: Lock Screen Now
404 *file.lock.mnemonic: L
405 *file.kill.labelString: Kill Daemon
406 *file.kill.mnemonic: K
407 *file.restart.labelString: Restart Daemon
408 *file.restart.mnemonic: R
409 *file.exit.labelString: Exit
410 *file.exit.mnemonic: E
412 *menubar*edit.labelString: Edit
413 *menubar*edit.mnemonic: E
414 *edit.cut.labelString: Cut
415 *edit.cut.mnemonic: u
416 *edit.copy.labelString: Copy
417 *edit.copy.mnemonic: C
418 *edit.paste.labelString: Paste
419 *edit.paste.mnemonic: P
421 *menubar*help.labelString: Help
422 *menubar*help.mnemonic: H
423 *help.about.labelString: About...
424 *help.about.mnemonic: A
425 *help.docMenu.labelString: Documentation...
426 *help.docMenu.mnemonic: D
428 *demoTab.marginWidth: 10
429 *optionsTab.marginWidth: 10
431 *XmScrolledWindow.topOffset: 10
432 *XmScrolledWindow.leftOffset: 10
433 *demoTab.topOffset: 4
434 *form1.bottomOffset: 10
435 *form3.leftOffset: 10
436 *form3.rightOffset: 10
438 *frame.bottomOffset: 10
439 *enabled.topOffset: 10
440 *visLabel.topOffset: 10
442 *form4.bottomOffset: 4
444 *XmComboBox.marginWidth: 0
445 *XmComboBox.marginHeight: 0
447 *demo.marginWidth: 30
448 *demo.marginHeight: 4
453 *down.marginHeight: 4
456 *frame.traversalOn: False
458 *list.automaticSelection: True
459 *list.visibleItemCount: 20
463 *demoTab.labelString: Graphics Demos
464 *optionsTab.labelString: Screensaver Options
465 *down.labelString: \\/
467 *frameLabel.labelString:
468 *cmdLabel.labelString: Command Line:
469 *cmdLabel.alignment: ALIGNMENT_BEGINNING
470 *enabled.labelString: Enabled
471 *visLabel.labelString: Visual:
472 *visLabel.alignment: ALIGNMENT_END
473 *visLabel.leftOffset: 20
474 *demo.labelString: Demo
475 *man.labelString: Documentation...
476 *done.labelString: Quit
478 *preferencesLabel.labelString: XScreenSaver Parameters
480 *timeoutLabel.labelString: Saver Timeout
481 *cycleLabel.labelString: Cycle Timeout
482 *fadeSecondsLabel.labelString: Fade Duration
483 *fadeTicksLabel.labelString: Fade Ticks
484 *lockLabel.labelString: Lock Timeout
485 *passwdLabel.labelString: Password Timeout
486 *preferencesForm*XmTextField.columns: 8
488 *verboseToggle.labelString: Verbose
489 *cmapToggle.labelString: Install Colormap
490 *fadeToggle.labelString: Fade Colormap
491 *unfadeToggle.labelString: Unfade Colormap
492 *lockToggle.labelString: Require Password
499 *Cancel.marginWidth: 30
500 *Cancel.marginHeight: 4
501 *Cancel.rightOffset: 10
502 *Cancel.bottomOffset: 10
507 !=============================================================================
509 ! Online documentation for xscreensaver-demo.
511 !=============================================================================
513 ! sanity check -- hands off.
514 *hacks.documentation.isInstalled: True
516 *hacks.grav.documentation: \
517 This program draws a simple orbital simulation. If you turn on \
518 trails, it looks kind of like a cloud-chamber photograph. Written by \
521 *hacks.qix.documentation: \
522 This is the swiss army chainsaw of qix programs. It bounces a series \
523 of line segments around the screen, and uses variations on this basic \
524 motion pattern to produce all sorts of different presentations: line \
525 segments, filled polygons, overlapping translucent areas... Written \
528 *hacks.attraction.documentation: \
529 Like qix, this uses a simple simple motion model to generate many \
530 different display modes. The control points attract each other up to \
531 a certain distance, and then begin to repel each other. The \
532 attraction/repulsion is proportional to the distance between any two \
533 particles, similar to the strong and weak nuclear forces. \
535 One of the most interesting ways to watch this hack is simply as \
536 bouncing balls, because their motions and interactions with each \
537 other are so odd. Sometimes two balls will get into a tight orbit \
538 around each other, to be interrupted later by a third, or by the edge \
539 of the screen. It looks quite chaotic. \
541 Written by Jamie Zawinski, based on Lisp code by John Pezaris.
543 *hacks.pyro.documentation: \
544 Pyro draws exploding fireworks. Blah blah blah. Written by Jamie \
547 *hacks.helix.documentation: \
548 This repeatedly generates spirally string-art-ish patterns. Written \
551 *hacks.pedal.documentation: \
552 This is sort of a combination spirograph/string-art. It generates a \
553 large, complex polygon, and lets the X server do the bulk of the work \
554 by giving it an even/odd winding rule. Written by Dale Moore, based \
555 on some ancient PDP-11 code.
557 *hacks.rorschach.documentation: \
558 This generates random inkblot patterns. The algorithm is deceptively \
559 simple for how well it works; it merely walks a dot around the screen \
560 randomly, and then reflects the image horizontally, vertically, or \
561 both. Any deep-seated neurotic tendencies which this program reveals \
562 are your own problem. Written by Jamie Zawinski.
564 *hacks.hopalong.documentation: \
565 This draws lacy fractal patterns, based on iteration in the imaginary \
566 plane, from a 1986 Scientific American article. Mostly written by \
569 *hacks.greynetic.documentation: \
570 This draws random colored and stippled rectangles. Written by Jamie \
573 *hacks.xroger.documentation: \
574 The XScreenSaver logo. Don't you hate it? So do I. Would you like \
575 to design a new logo for XScreenSaver? If so, send jwz your \
578 *hacks.imsmap.name: IMSmap
579 *hacks.imsmap.documentation: \
580 This generates random cloud-like patterns. It looks quite different \
581 in monochrome and color. The basic idea is to take four points on \
582 the edge of the image, and assign each a random ``elevation''. Then \
583 find the point between them, and give it a value which is the average \
584 of the other four, plus some small random offset. Then coloration is \
585 done based on elevation. \
587 The color selection is done by binding the elevation to either hue, \
588 saturation, or brightness, and assigning random values to the others. \
589 The ``brightness'' mode tends to yield cloudlike patterns, and the \
590 others tend to generate images that look like heat-maps or CAT-scans. \
591 Written by Juergen Nickelsen and Jamie Zawinski.
593 *hacks.slidescreen.name: SlideScreen
594 *hacks.slidescreen.documentation: \
595 This grabs an image of whatever is on your screen, divides it into a \
596 grid, and then randomly shuffles the squares around as if it was one \
597 of those annoying ``16-puzzle'' games, where there is a grid of \
598 squares, one of which is missing. I hate trying to solve those \
599 puzzles, but watching one permute itself is more amusing. Written by \
602 *hacks.decayscreen.name: DecayScreen
603 *hacks.decayscreen.documentation: \
604 This grabs an image of whatever is on your screen, and makes it melt. \
605 You've no doubt seen this effect before, but no screensaver would \
606 really be complete without it. It works best if there's something \
607 colorful visible. Warning, if the effect continues after the screen \
608 saver is off, seek medical attention. Written by David Wald and \
611 A number of these screenhacks have the ability to take an image of \
612 your desktop and manipulate it in some way. On SGI systems, these \
613 programs are able to (at random) pull their source image from the \
614 system's video input instead! This works nicely if you leave some \
615 some random television station plugged in.
617 *hacks.jigsaw.documentation: \
618 This grabs a screen image, carves it up into a jigsaw puzzle, \
619 shuffles it, and then solves the puzzle. This works especially well \
620 when you feed it an external video signal instead of letting it grab \
621 the screen image (actually, I guess this is generally true...) When \
622 it is grabbing a video image, it is sometimes pretty hard to guess \
623 what the image is going to look like once the puzzle is solved. \
624 Written by Jamie Zawinski.
626 *hacks.blitspin.name: BlitSpin
627 *hacks.blitspin.documentation: \
628 The ``blitspin'' hack repeatedly rotates a bitmap by 90 degrees by \
629 using logical operations: the bitmap is divided into quadrants, and \
630 the quadrants are shifted clockwise. Then the same thing is done \
631 again with progressively smaller quadrants, except that all \
632 sub-quadrants of a given size are rotated in parallel. Written by \
633 Jamie Zawinski based on some cool SmallTalk code seen in in Byte \
636 As you watch it, the image appears to dissolve into static and then \
637 reconstitute itself, but rotated. You can provide the image to use, \
638 as an XBM or XPM file, or tell it to grab a screen image and rotate \
641 *hacks.slip.documentation: \
642 This program throws some random bits on the screen, then sucks them \
643 through a jet engine and spews them out the other side. To avoid \
644 turning the image completely to mush, every now and then it will and \
645 then it interjects some splashes of color into the scene, or go into \
646 a spin cycle, or stretch the image like taffy, or (this is my \
647 addition) grab an image of your current desktop to chew on. \
648 Originally written by Scott Draves; whacked on by Jamie Zawinski.
650 *hacks.distort.documentation: \
651 This hack grabs an image of the screen, and then lets a transparent \
652 lens wander around the screen, magnifying whatever is underneath. \
653 Written by Jonas Munsin.
655 *hacks.spotlight.documentation: \
656 Draws a spotlight scanning across a black screen, illumnating the \
657 underlying desktop when it passes. Written by Rick Schultz.
659 *hacks.hypercube.documentation: \
660 This displays 2D projections of the sequence of 3D objects which are \
661 the projections of the 4D analog to the cube: as a square is composed \
662 of four lines, each touching two others; and a cube is composed of \
663 six squares, each touching four others; a hypercube is composed of \
664 eight cubes, each touching six others. To make it easier to \
665 visualize the rotation, it uses a different color for the edges of \
666 each face. Don't think about it too long, or your brain will melt. \
667 Written by Joe Keane, Fritz Mueller, and Jamie Zawinski.
669 *hacks.halo.documentation: \
670 This draws trippy psychedelic circular patterns that hurt to look at. \
671 It can also animate the control-points, but that takes a lot of CPU \
672 and bandwidth. Written by Jamie Zawinski.
674 *hacks.maze.documentation: \
675 This is the ancient X maze demo, modified to work with xscreensaver. \
676 It generates a random maze, then solves it with visual feedback. \
677 Originally by Jim Randell; modified by a cast of thousands.
679 *hacks.noseguy.documentation: \
680 A little man with a big nose wanders around your screen saying \
681 things. The things which he says can come from a file, or from an \
682 external program like `zippy' or `fortune'. This was extracted from \
683 `xnlock' by Dan Heller. Colorized by Jamie Zawinski.
685 *hacks.flame.documentation: \
686 Another iterative fractal generator. Written by Scott Draves.
688 *hacks.lmorph.name: LMorph
689 *hacks.lmorph.documentation: \
690 This generates random spline-ish line drawings and morphs between \
691 them. Written by Sverre H. Huseby and Glenn T. Lines.
693 *hacks.deco.documentation: \
694 This one subdivides and colors rectangles randomly. It looks kind of \
695 like Brady-Bunch-era rec-room wall paneling. (Raven says: ``this \
696 screensaver is ugly enough to peel paint.'') Written by Jamie \
697 Zawinski, inspired by Java code by Michael Bayne.
699 *hacks.moire.documentation: \
700 This one draws cool circular interference patterns. Most of the \
701 circles you see aren't explicitly rendered, but show up as a result \
702 of interactions between the other pixels that were drawn. Written by \
703 Jamie Zawinski, inspired by Java code by Michael Bayne. As he \
704 pointed out, the beauty of this one is that the heart of the display \
705 algorithm can be expressed with just a pair of loops and a handful of \
706 arithmetic, giving it a high ``display hack metric''.
708 *hacks.moire2.documentation: \
709 Another example of the fun you can have with moire \
710 interference patterns; this hack generates fields of concentric \
711 circles or ovals, and combines the planes with various operations. \
712 The planes are moving independently of one another, causing the \
713 interference lines to ``spray.'' Written by Jamie Zawinski.
715 *hacks.lightning.documentation: \
716 This one draws crackling fractal lightning bolts. It's simple, \
717 direct, and to the point. If only it had sound... Written by Keith \
720 *hacks.strange.documentation: \
721 This draws strange attractors: it's a colorful, \
722 unpredictably-animating field of dots that swoops and twists around. \
723 The motion is very nice. Written by Massimino Pascal.
725 *hacks.spiral.documentation: \
726 Moving circular patterns, by Peter Schmitzberger. Moving circular \
727 patterns means moire; interference patterns, of course.
729 *hacks.laser.documentation: \
730 Moving radiating lines, that look vaguely like scanning laser beams. \
731 Written by Pascal Pensa. (Frankie say: relax.)
733 *hacks.grav.documentation: \
734 This program draws a simple orbital simulation. If you turn on \
735 trails, it looks kind of like a cloud-chamber photograph. Written \
738 *hacks.drift.documentation: \
739 How could one possibly describe this except as ``drifting recursive \
740 fractal cosmic flames?'' Another fine hack from the Scott Draves \
741 collection of fine hacks.
744 *hacks.ifs.documentation: \
745 This one draws spinning, colliding iterated-function-system images. \
746 Written by Massimino Pascal.
748 *hacks.julia.documentation: \
749 This one draws spinning, animating (are you detecting a pattern here \
750 yet?) explorations of the Julia set. You've probably seen static \
751 images of this fractal form before, but it's a lot of fun to watch in \
752 motion as well. One interesting thing is that there is a small \
753 swinging dot passing in front of the image, which indicates the \
754 control point from which the rest of the image was generated. \
755 Written by Sean McCullough.
757 *hacks.penrose.documentation: \
758 Draws quasiperiodic tilings; think of the implications on modern \
759 formica technology. Written by Timo Korvola. \
761 In April 1997, Sir Roger Penrose, a British math professor who has \
762 worked with Stephen Hawking on such topics as relativity, black \
763 holes, and whether time has a beginning, filed a \
764 copyright-infringement lawsuit against the Kimberly-Clark \
765 Corporation, which Penrose said copied a pattern he created (a \
766 pattern demonstrating that ``a nonrepeating pattern could exist in \
767 nature'') for its Kleenex quilted toilet paper. Penrose said he \
768 doesn't like litigation but, ``When it comes to the population of \
769 Great Britain being invited by a multinational to wipe their bottoms \
770 on what appears to be the work of a Knight of the Realm, then a last \
771 stand must be taken.'' \
773 As reported by News of the Weird #491, 4-jul-1997.
775 *hacks.sierpinski.documentation: \
776 This draws the two-dimensional variant of the recursive Sierpinski \
777 triangle fractal. Written by Desmond Daignault.
779 *hacks.braid.documentation: \
780 Draws random color-cycling inter-braided concentric circles. Written \
783 *hacks.galaxy.documentation: \
784 This draws spinning galaxies, which then collide and scatter their \
785 stars to the, uh, four winds or something. Originally an Amiga \
786 program by Uli Siegmund.
788 *hacks.bouboule.documentation: \
789 This draws what looks like a spinning, deforming baloon with \
790 varying-sized spots painted on its invisible surface. Written by \
793 *hacks.swirl.documentation: \
794 More flowing, swirly patterns. This version is by M. Dobie and R. \
795 Taylor, but you might have seen a Mac program similar to this called \
796 FlowFazer. There is also a cool Java applet of a similar concept
798 *hacks.flag.documentation: \
799 This draws a waving colored flag, that undulates its way around the \
800 screen. The trick is the flag can contain arbitrary text and images. \
801 By default, it displays either the current system name and OS \
802 type, or a picture of ``Bob,'' but you can replace the text or the \
803 image with a command-line option. Written by Charles Vidal and Jamie \
806 *hacks.sphere.documentation: \
807 Another of the classic screenhacks of the distant past, this one \
808 draws shaded spheres in multiple colors. This hack traces its \
809 lineage back to Tom Duff in 1982.
811 *hacks.forest.documentation: \
812 This draws fractal trees. Written by Peter Baumung. Everybody loves \
815 *hacks.lisa.documentation: \
816 This draws Lisajous loops, by Caleb Cullen. Remember that device \
817 they had the Phantom Zone prisoners in during their trial in \
818 Superman? I think that was one of these.
820 *hacks.lissie.documentation: \
821 Another Lissajous figure. This one draws the progress of circular \
822 shapes along a path. Written by Alexander Jolk.
824 *hacks.goop.documentation: \
825 This draws set of animating, transparent, amoeba-like blobs. The \
826 blobs change shape as they wander around the screen, and they are \
827 translucent, so you can see the lower blobs through the higher ones, \
828 and when one passes over another, their colors merge. Written by \
829 Jamie Zawinski. I got the idea for this from a cool mouse pad I \
830 have, which achieves the same kind of effect in real life by having \
831 several layers plastic with colored oil between them. Written by \
834 *hacks.starfish.documentation: \
835 This generates a sequence of undulating, throbbing, star-like \
836 patterns which pulsate, rotate, and turn inside out. Another display \
837 mode uses these shapes to lay down a field of colors, which are then \
838 cycled. The motion is very organic. Written by Jamie Zawinski.
840 *hacks.munch.documentation: \n\
847 As reported by HAKMEM, in 1962, Jackson Wright wrote the above PDP-1 \
848 code. That code still lives on in this screenhack, some 35 years \
849 later. The number of lines of enclosing code has increased \
850 substantially, however. This version is by Tim Showalter.
852 *hacks.fadeplot.name: FadePlot
853 *hacks.fadeplot.documentation: \
854 Draws what looks like a waving ribbon following a sinusoidal path. \
855 Written by Bas van Gaalen and Charles Vidal.
857 *hacks.coral.documentation: \
858 Simulates coral growth, albeit somewhat slowly. This image doesn't \
859 really do it justice. Written by Frederick Roeber.
861 *hacks.mountain.documentation: \
862 Generates random 3d plots that look vaguely mountainous. Written by \
865 *hacks.triangle.documentation: \
866 Generates random mountain ranges using iterative subdivision of \
867 triangles. Written by Tobias Gloth.
869 *hacks.worm.documentation: \
870 An ancient xlock hack that draws multicolored worms that crawl around \
871 the screen. Written by Brad Taylor, Dave Lemke, Boris Putanec, and \
874 *hacks.rotor.documentation: \
875 Another ancient xlock demo, this one by Tom Lawrence. It draws a \
876 line segment moving along a complex spiraling curve. I tweaked this \
877 to generate curvier lines, but still frames of it don't look like \
880 *hacks.ant.documentation: \
881 A cellular automaton that is really a two-dimensional Turing machine: \
882 as the heads (``ants'') walk along the screen, they change pixel \
883 values in their path. Then, as they pass over changed pixels, their \
884 behavior is influenced. Written by David Bagley.
886 *hacks.demon.documentation: \
887 A cellular automaton that starts with a random field, and organizes \
888 it into stripes and spirals. Written by David Bagley.
890 *hacks.loop.documentation: \
891 This one produces loop-shaped colonies that spawn, age, and \
892 eventually die. Written by David Bagley.
894 *hacks.vines.documentation: \
895 This one generates a continuous sequence of small, curvy geometric \
896 patterns. It scatters them around your screen until it fills up, \
897 then it clears the screen and starts over. Written by Tracy Camp and \
900 *hacks.kaleidescope.documentation: \
901 Another clone of an ancient meme, consisting largely of frenetic \
902 rotational motion of colored lines. This one is by Ron Tapia. The \
903 motion is nice, but I think it needs more solids, or perhaps just \
904 brighter colors. More variations in the rotational speed might help, \
907 *hacks.xjack.documentation: \
908 This program behaves schizophrenically and makes a lot of typos. \
909 Written by Jamie Zawinski. If you haven't seen Stanley Kubrick's \
910 masterpiece, ``The Shining,'' you won't get it. Those who have \
911 describe this hack as ``inspired.''
913 *hacks.xlyap.documentation: \
914 This generates pretty fractal pictures by doing funky math involving \
915 the ``Lyapunov exponent.'' It has a cool interactive mode, too. \
916 Written by Ron Record.
918 *hacks.cynosure.documentation: \
919 A hack similar to `greynetic', but less frenetic. The first \
920 implementation was by Stephen Linhart; then Ozymandias G. Desiderata \
921 wrote a Java applet clone. That clone was discovered by Jamie \
922 Zawinski, and ported to C for inclusion here.
924 *hacks.flow.documentation: \
925 Another series of strange attractors: a flowing series of points, \
926 making strange rotational shapes. Written by Jeff Butterworth.
928 *hacks.epicycle.documentation: \
929 This program draws the path traced out by a point on the edge of a \
930 circle. That circle rotates around a point on the rim of another \
931 circle, and so on, several times. These were the basis for the \
932 pre-heliocentric model of planetary motion. Written by James \
935 *hacks.interference.documentation: \
936 Another color-field hack, this one works by computing decaying \
937 sinusoidal waves, and allowing them to interfere with each other as \
938 their origins move. Written by Hannu Mallat.
940 *hacks.truchet.documentation: \
941 This draws line- and arc-based Truchet patterns that tile the screen. \
942 Written by Adrian Likins.
944 *hacks.bsod.name: BSOD
945 *hacks.bsod.documentation: \
946 BSOD stands for ``Blue Screen of Death.'' The finest in personal \
947 computer emulation, this hack simulates popular screen savers from a \
948 number of less robust operating systems. Written by Jamie Zawinski.
950 *hacks.crystal.documentation: \
951 Moving polygons, similar to a kaleidescope (more like a kaleidescope \
952 than the hack called `kaleid,' actually.) This one by Jouk Jansen.
954 *hacks.discrete.documentation: \
955 More ``discrete map'' systems, including new variants of Hopalong and \
956 Julia, and a few others. Written by Tim Auckland.
958 *hacks.kumppa.documentation: \
959 Spiraling, spinning, and very, very fast splashes of color rush \
960 toward the screen. Written by Teemu Suutari.
962 *hacks.rd-bomb.name: RD-Bomb
963 *hacks.rd-bomb.documentation: \
964 Another variation of the `Bomb' program by Scott Draves. This draws \
965 a grid of growing square-like shapes that, once they overtake each \
966 other, react in unpredictable ways. ``RD'' stands for \
969 *hacks.sonar.documentation: \
970 This program draws a simulation of a sonar screen. Written by \
971 default, it displays a random assortment of ``bogies'' on the screen, \
972 but if compiled properly, it can ping (pun intended) your local \
973 network, and actually plot the proximity of the other hosts on your \
974 network to you. It would be easy to make it monitor other sources of \
975 data, too. (Processes? Active network connections? CPU usage per \
976 user?) Written by Stephen Martin.
979 *hacks.t3d.documentation: \
980 This draws a working analog clock composed of floating, throbbing \
981 bubbles. Written by Bernd Paysan.
983 *hacks.penetrate.documentation: \
984 This hack simulates the classic arcade game Missile Command. Written \
987 *hacks.deluxe.documentation: \
988 This draws a pulsing sequence of stars, circles, and lines. It would \
989 look better if it was faster, but as far as I can tell, there is no \
990 way to make this be both: fast, and flicker-free. Yet another reason \
991 X sucks. Written by Jamie Zawinski.
993 *hacks.compass.documentation: \
994 This draws a compass, with all elements spinning about randomly, for \
995 that ``lost and nauseous'' feeling. Written by Jamie Zawinski.
997 *hacks.squiral.documentation: \
998 Draws a set of interacting, square-spiral-producing automata. The \
999 spirals grow outward until they hit something, then they go around \
1000 it. Written by Jeff Epler.
1002 *hacks.xflame.documentation: \
1003 Draws a simulation of pulsing fire. It can also take an arbitrary \
1004 image and set it on fire too. Written by Carsten Haitzler, hacked on \
1007 *hacks.wander.documentation: \
1008 Draws a colorful random-walk, in various forms. Written by Rick \
1011 *hacks.critical.documentation: \
1012 Draws a system of self-organizing lines. It starts out as random \
1013 squiggles, but after a few iterations, order begins to appear. \
1014 Written by Martin Pool.
1016 *hacks.phosphor.documentation: \
1017 Draws a simulation of an old terminal, with large pixels and \
1018 long-sustain phosphor. It can run any program as a source of the text \
1019 it displays. Written by Jamie Zawinski.
1021 *hacks.xmatrix.documentation: \
1022 A rendition of the text scrolls seen in the movie ``The Matrix.'' \
1023 Written by Jamie Zawinski.
1025 *hacks.petri.documentation: \
1026 This simulates colonies of mold growing in a petri dish. Growing \
1027 colored circles overlap and leave spiral interference in their wake. \
1028 Written by Dan Bornstein.
1030 *hacks.shadebobs.name: ShadeBobs
1031 *hacks.shadebobs.documentation: \
1032 This draws smoothly-shaded oscilating oval patterns, that look \
1033 something like vapor trails or neon tubes. Written by Shane Smit.
1035 *hacks.ccurve.name: C Curve
1036 *hacks.ccurve.documentation: \
1037 Generates self-similar linear fractals, including the classic ``C \
1038 Curve.'' Written by Rick Campbell.
1040 *hacks.blaster.documentation: \
1041 Draws a simulation of flying space-combat robots (cleverly disguised \
1042 as colored circles) doing battle in front of a moving star field. \
1043 Written by Jonathan Lin.
1045 *hacks.bumps.documentation: \
1046 A bit like `Spotlight', except that instead of merely exposing part \
1047 of your desktop, it creates a bump map from it. Basically, it \
1048 3D-izes a roaming section of your desktop, based on color intensity. \
1049 Written by Shane Smit.
1051 *hacks.webcollage.name: WebCollage
1052 *hacks.webcollage.documentation: \
1053 This program makes collages out of random images pulled off of the \
1054 World Wide Web. It finds these images by doing random web searches, \
1055 and then extracting images from the returned pages. It can also be \
1056 set up to filter the images through the `VidWhacker' program, above, \
1057 which looks really great. \
1059 (Note that most of the images it finds are text, and not pictures. \
1060 This is because most of the web is pictures of text. Which is pretty \
1061 sad.) Written by Jamie Zawinski.
1063 *hacks.vidwhacker.name: VidWhacker
1064 *hacks.vidwhacker.documentation: \
1065 This is actually just a shell script that grabs a frame of video from \
1066 the system's video input, and then uses some PBM filters (chosen at \
1067 random) to manipulate and recombine the video frame in various ways \
1068 (edge detection, subtracting the image from a rotated version of \
1069 itself, etc.) Then it displays that image for a few seconds, and \
1070 does it again. This works really well if you just feed broadcast \
1071 television into it. \
1073 Currently, the three lines of the script that actually grab the \
1074 source picture are SGI specific, but it should be trivial to adapt it \
1075 to work on other systems that can grab video (please send me the \
1076 changes if you do this...)
1078 *hacks.rocks.documentation: \
1079 This draws an animation of flight through an asteroid field, with \
1080 changes in rotation and direction. It can also display 3D \
1081 separations for red/blue glasses! Mostly written by Jamie Zawinski.
1083 *hacks.bubbles.documentation: \
1084 This simulates the kind of bubble formation that happens when water \
1085 boils:small bubbles appear, and as they get closer to each other, \
1086 they combine to form larger bubbles, which eventually pop. Written \
1089 *hacks.gears.documentation: \
1090 This draws a set of turning, interlocking gears, rotating in three \
1091 dimensions. Another GL hack, by Danny Sung, Brian Paul, and Ed \
1094 *hacks.superquadrics.documentation: \
1095 Ed Mackey reports that he wrote the first version of this program in \
1096 BASIC on a Commodore 64 in 1987, as a 320x200 black and white \
1097 wireframe. Now it is GL and has specular reflections.
1099 *hacks.morph3d.name: Morph3D
1100 *hacks.morph3d.documentation: \
1101 Another 3d shape-changing GL hack, by Marcelo Vianna. It has the \
1102 same shiny-plastic feel as Superquadrics, as many computer-generated \
1105 *hacks.cage.documentation: \
1106 This draws Escher's ``Impossible Cage,'' a 3d analog of a moebius \
1107 strip, and rotates it in three dimensions. Written by Marcelo \
1110 *hacks.moebius.documentation: \
1111 Another M. C. Escher hack by Marcelo Vianna, this one draws \
1112 ``Moebius Strip II,'' a GL image of ants walking along the surface of \
1115 *hacks.stairs.documentation: \
1116 by Marcelo Vianna's third Escher GL hack, this one draws an \
1117 ``infinite'' staircase.
1119 *hacks.pipes.documentation: \
1120 If you've ever been in the same room with a Windows NT machine, \
1121 you've probably seen this GL hack. This version is by Marcelo \
1124 *hacks.sproingies.documentation: \
1125 Q-Bert meets Marble Madness! Written by Ed Mackey.
1127 *hacks.rubik.documentation: \
1128 Draws a Rubik's Cube that rotates in three dimensions and repeatedly \
1129 shuffles and solves itself. Another fine GL hack by Marcelo Vianna.
1131 *hacks.atlantis.documentation: \
1132 This is xfishtank writ large: a GL animation of a number of sharks, \
1133 dolphins, and whales. The swimming motions are great. Originally \
1134 written by Mark Kilgard.
1136 *hacks.lament.documentation: \
1137 Animates a simulation of Lemarchand's Box, repeatedly solving itself. \
1138 Requires OpenGL, and a machine with fast hardware support for texture \
1139 maps. Warning: occasionally opens doors. Written by Jamie Zawinski.
1141 *hacks.bubble3d.name: Bubble3D
1142 *hacks.bubble3d.documentation: \
1143 Draws a stream of rising, undulating 3D bubbles, rising toward the \
1144 top of the screen, with nice specular reflections. Written by Richard \
1147 *hacks.glplanet.name: GLPlanet
1148 *hacks.glplanet.documentation: \
1149 Draws a planet bouncing around in space. Written by David Konerding. \
1150 The built-in image is a map of the earth (extracted from `xearth'), \
1151 but you can wrap any texture around the sphere, e.g., the planetary \
1152 textures that come with `ssystem'.
1154 *hacks.pulsar.documentation: \
1155 Draws some intersecting planes, making use of alpha blending, fog, \
1156 textures, and mipmaps, plus a ``frames per second'' meter so that you \
1157 can tell how fast your graphics card is... Requires OpenGL. Written \
1160 *hacks.extrusion.documentation: \
1161 Draws various rotating extruded shapes that twist around, lengthen, \
1162 and turn inside out. Created by David Konerding from the samples \
1163 that come with the GL Extrusion library by Linas Vepstas.
1165 *hacks.sierpinski3d.name: Sierpinski3D
1166 *hacks.sierpinski3d.documentation: \
1167 This draws the three-dimensional variant of the recursive Sierpinski \
1168 triangle fractal, using GL. Written by Tim Robinson.
1170 *hacks.ripples.documentation: \
1171 This draws rippling interference patterns like splashing water. \
1172 With the -water option, it manipulates your desktop image to look \
1173 like something is dripping into it. Written by Tom Hammersley.
1176 !=============================================================================
1178 ! Documentation for some programs that are not bundled with XScreenSaver
1180 !=============================================================================
1182 *hacks.xdaliclock.name: XDaliClock
1183 *hacks.xdaliclock.documentation: \
1184 XDaliClock draws a large digital clock, the numbers of which change by \
1185 ``melting'' into their new shapes. Written by Jamie Zawinski. This \
1186 is not included with the XScreenSaver package, but if you don't have \
1187 it already, you can find it at <http://www.jwz.org/xdaliclock/>.
1189 *hacks.xearth.documentation: \
1190 XEarth draws an image of the Earth, as seen from your favorite vantage \
1191 point in space, correctly shaded for the current position of the Sun. \
1192 Written by Kirk Johnson. This is not included with the XScreenSaver \
1193 package, but if you don't have it already, you can find it at \
1194 <http://www.cs.colorado.edu/~tuna/xearth/>.
1196 *hacks.ssystem.name: SSystem
1197 *hacks.ssystem.documentation: \
1198 SSystem is a GL Solar System simulator. It simulates flybys of Sun, \
1199 the nine planets and a few major satellites, with four camera modes. \
1200 Written by Raul Alonso. This is not included with the XScreenSaver \
1201 package, but if you don't have it already, you can find it at \
1202 <http://www1.las.es/~amil/ssystem/>.
1204 *hacks.xmountains.documentation: \
1205 XMountains generates realistic-looking fractal terrains of snow-capped \
1206 mountains near water, with either a top view or a side view. \
1207 Written by Stephen Booth. This is not included with the XScreenSaver \
1208 package, but if you don't have it already, you can find it at \
1209 <http://www.epcc.ed.ac.uk/~spb/xmountains/>.
1211 *hacks.xaos.name: XaoS
1212 *hacks.xaos.documentation: \
1213 XaoS generates fast fly-through animations of the Mandelbrot and other \
1214 fractal sets. Written by Thomas Marsh and Jan Hubicka. This is not \
1215 included with the XScreenSaver package, but if you don't have it \
1216 already, you can find it at <http://limax.paru.cas.cz/~hubicka/XaoS/>.
1218 *hacks.xfishtank.name: XFishTank
1219 *hacks.xfishtank.documentation: \
1220 Fish! This is not included with the XScreenSaver package, but if you \
1221 don't have it already, you can find it at \
1222 <http://metalab.unc.edu/pub/Linux/X11/demos/>.