boxfit man page

boxfit — fills space with a gradient of growing boxes or circles.


boxfit [-display host:display.screen] [-visual visual] [-window] [-root] [-delay usecs] [-count int] [-growby int] [-spacing int] [-border int] [-circles | -squares | -random] [-grab] [-peek] [-fps]


Packs the screen with growing boxes or circles, colored according to a horizontal or vertical gradient.  The objects grow until they touch, then stop.  When the screen is full, they shrink away and the process restarts.


-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 visual.


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


Draw on the root window.

-delay microseconds

How much of a delay should be introduced between steps of the animation. Default 20000, or about 0.02 seconds.

-count int

How many boxes or circles to animate simultaneously; default 50. Smaller numbers yield larger boxes/circles.

-growby int

How many pixels the objects should grow by, each frame.  Default 1.

-spacing int

How many pixels of space should be left between the objects.  Default 1.

-border int

Thickness of the colored border around each object.  Default 1.

-circles | -squares | -random

Draw circles, squares, or choose randomly (the default).


Normally it colors the boxes with a horizontal or vertical gradient. If -grab is specified, it will instead load a random image, and color the boxes according to the colors in that image. As the picture fills in, some features of the underlying image may become recognisable.

When grabbing images, the image will be grabbed from the portion of the screen underlying the window, or from the system's video input, or from a random file on disk, as indicated by the grabDesktopImages, grabVideoFrames, and chooseRandomImages options in the ~/.xscreensaver file; see xscreensaver-demo(1) for more details.


This option says to briefly show you the underlying image before beginning.  The default is not to show the unadulterated image at all. (This only has an effect when -grab is used.)


Display the current frame rate and CPU load.



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.

See Also

X(1), xscreensaver(1) xscreensaver-demo(1), xscreensaver-getimage(1)


Jamie Zawinski <>


5.36-4.fc26 (10-Feb-2017) X Version 11 XScreenSaver manual