XSNOW(6) User Commands XSNOW(6)
xsnow - Snow and Santa on your desktop
Xsnow shows an animation of Santa and snow on your desktop. Xsnow can also run in one or more windows, see options
-xwininfo, -id . (These options only work satisfactorily in an X11 environment.) Xsnow depends on an X11
environment. This is forced by setting the environment variable GDK_BACKEND=x11 before initializing the GTK.
Hopefully, this will ensure that xsnow also runs in a Wayland environment for some time.
If xsnow is misbehaving, try to remove the file $HOME/.xsnowrc.
<n> denotes an unsigned decimal (e.g 123) or octal (e.g. 017) or hex (e.g. 0x50009) number.
<c> denotes a string like "red" or "#123456".
<f> denotes a file name, like "/home/rick/Pictures/background.jpg".
print this text.
print man page.
prints version of xsnow.
put tar ball on stdout, so you can do:
xsnow -selfrep > xsnow.tar.gz
Drop the snowflakes on the given display. Make sure the display is nearby, so you can hear them enjoy...
If you have multiple monitors: snow in monitor n.
-1: use all monitors (default: -1)
Note: for this to work, Xinerama has to be functional.
1: draw outline around snow window. 0: no outline.
Note: snow-buildup on windows only in active sceen.
Run xsnow in vintage settings.
Do not read config file (see FILES).
Do not read or write config file (see FILES).
Start with hidden interactive menu.
Do not show interactive menu.
Apply scalefactor (default: 100).
1: use double buffering; 0: do not use double buffering (default: 1). Only effective with '-root' or '-id' or
Transparency in % (default: 0)
1: use xsnow theme for menu; 0: use system theme (default: 1)
0: Do not check gtk version before starting the user interface. 1: Check gtk version before starting the user
interface. (default: 1).
-id <n>, -window-id <n>
Snow in window with id (for example from xwininfo).
Act as if window is a desktop.
0: use one desktop for snow, 1: use all desktops (default: 1).
-above Snow above your windows. Default is to snow below your windows. NOTE: in some environments this results in an
Use a cursor to point at the window you want the snow to be fallen in.
Stop xsnow after so many seconds.
-root Force to paint on (virtual) root window.
Use this for xscreensaver:
Make sure xscreensaver is running, either as a start-up application
or from the command line, e.g:
nohup xscreensaver &
nohup xscreensaver -no-capture-stderr &
Run the program xscreensaver-demo to create the file ~/.xscreensaver
In the file ~.xscreensaver add after the line 'programs:' this line:
Use the program xscreensaver-demo to select xsnow as screensaver.
You probably want to select: Mode: Only One Screen Saver.
file to be used as background when running under xscreensaver.
-noisy Write extra info about some mouse clicks, X errors etc, to stdout.
How busy is your system with xsnow: the higher, the more load on the system (default: 100).
The higher, the more snowflakes are generated per second. Default: 100.
(Default) Animate blow-off snow.
Do not animate blowing snow from trees or windows
Use the given string as color for the flakes (default: #fffafa).
Multiply the speed of snow with this number/100 (default: 100).
Set size of (non-vintage) snow flakes (default: 8).
-snow (Default) Show snow.
Do not show snow.
Maximum number of active flakes (default: 300).
The higher, the more snow is generated in blow-off scenarios (default: 40).
-treetype <n>[,<n> ...]
Choose tree types: minimum 0, maximum 7 (default: 1,2,3,4,5,6,7,). Thanks to Carla Vermin for numbers >=3!
Credits: Image by b0red on Pixabay.
(Default) Use all non-vintage available tree types.
Use the given string as the color for the vintage tree (default: #7fff00). Works only for treetype 0.
Do not display the trees.
(Default) Display the trees.
Desired number of trees. Default 10.
Region in percents of the height of the window where trees grow (default: 30).
Allow scenery items to overlap each other (default).
Do not allow scenery items to overlap each other.
(Default) Display Santa running all over the screen.
Do not display Santa running all over the screen.
(Default) With Rudolph.
The minimum size of Santa is 0, the maximum size is 4. Default is 3. Thanks to Thomas Linder for the (big)
Santa 2! Santa 3 is derived from Santa 2, and shows the required eight reindeer. The appearance of Santa 4
may be a surprise, thanks to Carla Vermin for this one.
The speed Santa should not be excessive if he doesn't want to get fined. The appropriate speed for the Santa
chosen will be multiplied by santaspeedfactor/100 (default: 100).
-wind (Default) It will get windy now and then.
By default it gets windy now and then. If you prefer quiet weather specify -nowind.
This sets the whirl factor, i.e. the maximum adjustment of the horizontal speed. The default value is 100.
With -windtimer you can specify how often it gets windy. It's sort of a period in seconds, default value is
The number of stars (default: 20).
(Default) Show meteors.
Do not show meteors.
Frequency of falling of meteors, 0..100 (default: 40).
1: show moon, 0: do not show moon (default: 1).
Picture of moon thanks to Pedro Lasta on Unsplash.
Speed of moon in pixels/minute (default: 120).
Realtive size of moon (default: 100).
1: show halo around moon, 0: do not show halo (default: 1).
Brightness of halo (default: 25).
To show (1) or not to show(0) aurora (default: 1).
On most desktops aurora works, but not on all. Try!
Place aurora in top left of screen.
Place aurora in top middle of screen.
Place aurora in top right of screen (default).
Width of aurora in percentage of screen width (default: 60).
Height of aurora's base line in percentage of screen height (default: 50).
Height of aurora (default: 30).
Animation speed of aurora (default: 50).
10: about real value, 100: timelapse.
Brightness of aurora (default: 15).
Fallen snow options:
Maximum thickness of snow on top of windows (default: 30).
Maximum thickness of snow at the bottom of the screen (default: 50).
Maximum number of flakes on trees. Default 200.
(Default) Keep snow on top of the windows.
Do not keep snow on top of the windows.
(Default) Keep snow at the bottom of the screen.
Do not keep snow at the bottom of the screen.
(Default) Keep snow on trees.
Do not keep snow on trees.
(Default) Have snow sticking anywhere.
Do not have snow sticking anywhere.
(Default) Create fluff on fallen snow.
Do not create fluff on fallen snow.
Correction for window-manager provided x-coordinate of window. Default 4.
Correction for window-manager provided y-coordinate of window. Default 0.
Correction for window-manager provided width of window. Default -8.
Correction for bottom coordinate of your screen. A negative value lifts the xsnow screen up. Default 0.
Do not collect snow on window > 0.8*width of screen and closer than <n> pixels from the top. Sometimes an
hidden window is sitting there, but treated as a normal window by xsnow. Default 0.
Analog to -ignoretop, but now for the bottom. Default 0.
Anarchy factor ( 0..100 default: 50).
Use the given string as color for the birds (default: #361A07).
Show only birds ( 0/1 default: 0).
Speed of birds ( 0..300 default: 100).
Eagerness to keep desired distance ( 0..100 default: 20).
Eagerness to fly to the focus ( 0..300 default: 100).
Eagerness to follow neighbours ( 0..100 default: 30).
Number of birds ( 0..400 default: 70).
Number of neighbours to watch ( 0..20 default: 7).
Preferred distance to neighbours ( 0..100 default: 40).
Show birds ( 0/1 default: 1).
Show attraction point ( 0/1 default: 0).
Vertical space to be used by the attraction point (default: 40).
Birds like Santa ( 0/1 default: 0).
Viewing distance ( 0..95 default: 40).
Scalefactor used painting the birds (default: 100).
Settings are read from and written to this file. See flags -noconfig and -defaults how to influence this
NOTE: the following settings are not read or written:
-above -defaults -desktop -fullscreen -noconfig -id
-nomenu -stopafter -xwininfo -display -noisy -checkgtk
If present, xsnow will try this file for displaying the trees. The format must be xpm (X PixMap) format, see
NOTE: when this file is present, no menu will appear.
where <n> = 1,2,3,4. If present, xsnow will try this files (4 of them) for displaying Santa. The format must
be xpm (X PixMap) format, see https://en.wikipedia.org/wiki/X_PixMap .
NOTE: when these files are present, no menu will appear.
$ xsnow -defaults # run with defaults.
$ xsnow # run using values from the config file.
$ xsnow -treetype 1,2 # use tree types 1 and 2.
WINDOW MANAGER ISSUES
In general, xsnow works better when using a compositing window manager like xcompmgr, compton or picom. However, with
some window managers (FVWM for example), the xsnow-window is transparent, but not click-through. Flags to be tried in
this case include: -root, -doublebuffer, -xwininfo, -id.
Here follow some window managers with their issues:
Tiling window managers
Here you need to float windows with class=Xsnow.
Without compositor: no issues.
With compositor: no click-through xsnow window, and issues with multi-monitor setup.
BSPWM No issues if you add to your bspwmrc (the bspwm configuration file):
bspc rule -a Xsnow state=floating border=off
DWM No issues, except the "Below Windows" setting in the "settings" panel.
With one monitor: no issuses.
With more montors: probems with showing in 'all monitors'
Without compositor: no issues.
With compositor: no click-through xsnow window
FVWM Without compositor: no issues.
With compositor: no click-through xsnow window
GNOME on Xorg
GNOME on Wayland
Most windows don't catch snow.
I3 Without compositor: windows don't catch snow, use the next line in "config":
for_window [class="Xsnow"] floating enable;border none
With compositor: unworkable.
JVM No issues.
LXDE With compositor: no issues.
Without compositor: works with one monitor.
Maybe you need to run with the flag -xwininfo
LXQT Without compositor: unworkable. With compositor: no issues.
MATE No issues.
Various issues. In any case you need in spectrwm.conf:
quirk[Xsnow] = FLOAT
TWM Without compositor: no issues.
With compositor: no click-through xsnow window and
you need to tweak settings->lift snow on windows.
Without compositor: no issues. With compositor: no click-through xsnow window
XFCE No issues when compositing is on, unworkable when compositing is off.
See settings -> Window Manager Tweaks -> Compositor
XMONAD No issues if you add to your xmonad.hs:
xmonad $ ewmh $ defaultConfig
in the ManageHook section:
className = ? "Xsnow" --> doFloat
- Xsnow needs a complete rewrite: the code is a mess.
- The flags are not consistent, caused by trying to be
compatible with older versions.
- Xsnow stresses the Xserver too much.
- Xsnow does run in Wayland, but will not snow on all windows.
- Xsnow tries to create a click-through window. This is not successful
in for example FVWM/xcompmgr. In that case, xsnow tries to keep
the snow window below all others, resulting in a transient effect
when you click on the desktop. Sadly, no FVWM menu will appear...
- Remnants of fluffy snow can persist after removing the
fallen snow. These will gradually disappear, so no big deal.
- Remnants of meteors can persist after passage of Santa.
These will eventually be wiped out by snow or Santa.
- Xsnow tries to adapt its snowing window if the display
settings are changed while xsnow is running.
This does not function always well.
- Xsnow does not play well with 'xcompmgr -a'. In some environments
(Raspberry 64 bit) xcompmgr is started with the flag '-a',
resulting in a black snow window. Remedy:
In a terminal window type:
nohup xcompmgr -n &
and try again.
- In XFCE, compositing must be enabled for xsnow.
Settings -> Window Manager Tweaks -> Compositor -> Enable display compositing
- In multi-screen environments, it depends on the display settings
if it is snowing on all screens. Experiment!
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
xsnow-3.5.4~pre22 2022 XSNOW(6)