XScreenSaver is a free and open-source collection of 232 screensavers for Unix-like, macOS, iOS and Androidoperating systems. It was created by Jamie Zawinski in 1992 and is still maintained by him. The free software and open-source Unix-like operating systems running the X Window System use XScreenSaver almost exclusively. On those systems, there are two packages for XScreenSaver: the collection of screen savers, and the framework for blanking and locking the screen. In recent years, some Linux distributions have been using the gnome-screensaver or kscreensaver screen-blanking frameworks by default instead of the framework included with XScreenSaver. They still depend on the XScreenSaver collection of screen savers, which is over 90% of the package, with the exception of gnome-screensaver version 3 and onward, which has dropped support for screensavers completely, supporting only simple screen blanking. In December of 2018, Linux Mint released the 19.1 version of its Operating System, with Cinnamon 4.0.8, which no longer supports the XScreensaver hacks. On Macintosh systems, XScreenSaver works with the usual Apple screen saver framework, and X Window System is unneeded. A version for Android works by running the "hacks" as screensavers or live wallpapers. There is no official version for Microsoft Windows, and the developer discourages anyone from porting it; he holds a "personal grudge" against Microsoft because of the First Browser War. In version 5.21 a time bomb has been introduced that displays large popups chastising the user for having an "outdated" version on login or interacting with XScreenSaver. The lock screen has similar wording. XScreenSaver is released under the terms of the X11 License.
Software architecture
One reason for XScreenSaver's popularity is the modularity of its design, which makes it easy to add new display modes. The display modes are each stand-alone programs invoked by the xscreensaver daemon. In this way, a third-party screen saver can be written in any language or with any graphics library, so long as it is capable of rendering onto an externally provided window. For portability, the included hacks are all written in C, using libX11 and/or OpenGL 1.3. An important feature of the xscreensaver daemon's design is that the display modes are sandboxed into a separate process from the screen locking framework. This means that a programming error in one of the graphical display modes cannot compromise the screen locker itself. On Unix systems, running the hacks from the command line will cause them to open their own non-full-screen window. For testing purposes GLMatrix was ported to Wayland. The author choose GLMatrix because it renders with OpenGL and the ones that do not, render with Xlib, and the author did not want to port such to Cairo.
Hacks
The included hacks are highly varied, ranging from simple 2D psychedelia, to 3D demonstrations of complex mathematical principles, to simulations of other computer systems, to re-creations of artifacts and effects from movies. Though many of the newer hacks take full advantage of the power of modern computers, the age of the project means that some of the older hacks may look dated to modern eyes, as they were originally written for much less powerful computers. Popular hacks include:
Apple2 - simulates an Apple II computer, showing a user entering a simple BASIC program and running it. When run from the command-line, it is a fully functional terminal emulator
Barcode - a number of coloured barcodes scroll across the screen.
Flying toasters - 3D toasters fly around, inspired by the classic After Darkscreensaver.
Gears - an OpenGL animation of inter-meshing gears and planetary gears.
GLMatrix - an OpenGL animation similar to the "digital rain" title sequence seen in the Matrix trilogy.
Molecule - an OpenGL animation showing space-filling or ball-and-stick models of a series of common drugs and other molecules, of which thirty-eight are built in. It can also read PDB from a file, or files placed in a directory, as input.
Penrose - tiles the screen aperiodically with coloured Penrose tiles.
Spotlight - puts a moving spotlight across the desktop in the style of the James Bond film opening sequences.
Sproingies - an animation in the style of the video game Q*bert.
Webcollage - creates collages out of random images found on the Web.