I needed a simple, nice-looking and cpu-friendly xscreensaver-module. So I wrote one.


The reason for writing the module was, that I often have to use my laptop on the go, and most of the xscreensaver-modules drained the battery by stressing the CPU. I needed something that was as simple and battery-saving as possible while not being just blank. Every once in a while it happened that I typed in the password when I thought the screensaver was in blank mode, but actually an application produced a blank screen (e.g. a video player in fullscreen mode).


xscreensaver preview dialog xscreensaver-avatars settings dialog


Source code and detailed installation instructions are available in the xscreensaver-avatars repository at GitHub.


XScreenSaver(1)                                                XScreenSaver(1)

       avatars - a simple, cpu-friendly screensaver

       avatars   [-display   host:display.screen]  [-window]  [-root]  [-mono]
       [-install] [-visual visual] [-show  seconds]  [-blank  seconds]  [-fade
       seconds] [-image number] [-fps]

       The  avatars  program draws an avatar or a logo on a random position on
       the screen. After a defined delay the image disappears just to show  up
       at  a  new  position. Frames are precalculated at start, so the screen-
       saver can run for hours without eating up your cpu power.

       avatars accepts the following options:

       -window Draw on a newly-created window.  This is the default.

       -root   Draw on the root window.

       -mono   If on a color display, pretend we're on a monochrome display.

               Install a private colormap for the window.

       -visual visual
               Specify which visual to use.  Legal values are the  name  of  a
               visual  class,  or the id number (decimal or hex) of a specific

       -show seconds
               How long an avatar is displayed.  Default 6 seconds.

       -blank seconds
               How long the screen is blank between fading out and fading  in.
               Default 1 second.

       -fade seconds
               How long fading in/out lasts.  Default 1 second.

       -image number
               Selects  image  to  be  used.  Default  0. (0=Penguin, 1=Alien,
               2=Your Logo)

       -fps    Display the current frame rate and CPU load.

       DISPLAY to get the default host and display number.

               to get the name of a resource file that  overrides  the  global
               resources stored in the RESOURCE_MANAGER property.

       X(1), xscreensaver(1)

       Copyright © 2011 by Dan Luedtke.  Permission to use, copy, modify, dis-
       tribute, and sell this software and its documentation for  any  purpose
       is hereby granted without fee, provided that the above copyright notice
       appear in all copies and that both that copyright notice and this  per-
       mission  notice appear in supporting documentation.  No representations
       are made about the suitability of this software for any purpose.  It is
       provided "as is" without express or implied warranty.

       Written by Dan Luedtke <mail@danrl.de>, based on code by Jamie Zawinski

X Version 11                      16-Dec-2011                  XScreenSaver(1)