Your company here — click to reach over 10,000 unique daily visitors

xscreensaver-getimage - Man Page

loads a randomly-selected image onto an X11 Drawable for use by screen savers


xscreensaver-getimage [--display host:display.screen] [--verbose] window-id [pixmap-id]


The xscreensaver-getimage program is a helper program for the xscreensaver hacks that manipulate images.

This program selects a random image, and puts it on the specified window or pixmap.  This image might be a snapshot of the desktop; or a frame captured from the system's video input; or a randomly-selected image from disk.

If only a window ID is specified, the image will be painted there. If both a window ID and a pixmap ID are specified, then the image will be painted on the pixmap; and the window may be modified as a side-effect.


xscreensaver-getimage reads the ~/.xscreensaver file for configuration information. It uses these settings:


Whether it is acceptable to grab snapshots of the desktop. The security paranoid might want to turn this off, to avoid letting people see (but not touch!) your desktop while the screen is locked.


Whether it is acceptable to grab frames of video from the system's video input.  Grabbing of video is done by invoking the xscreensaver-getimage-video(6x) program.


Whether it is acceptable to display random images found on disk. Selection and loading of images is done by invoking the xscreensaver-getimage-file(6x) program.


When loading images from disk, this is the directory to find them in. The directory will be searched recursively for images.

It may also be the URL of an RSS or Atom feed, in which case a random image from that feed will be selected instead.  The contents of the feed will be cached locally and refreshed periodically as needed.

If none of the three options are set to True, then video colorbars will be displayed instead.


When grabbing desktop images, the window argument will be unmapped and have its contents modified, causing flicker.  (This does not happen when loading image files or video frames.)

See Also

X(1), xscreensaver(1) xscreensaver-settings(1) xscreensaver-getimage-file(6x) xscreensaver-getimage-video(6x)


Jamie Zawinski <jwz@jwz.org>, 14-Apr-2001

Referenced By

xscreensaver(1), xscreensaver-settings(1).

6.09-1.fc41 (11-Jun-2024) X Version 11 XScreenSaver manual