Skip to content

Background

[background] is the desktop wallpaper: a list of images shown in order, changing every interval_minutes with an animated transition. Edit it under Settings → Shell → Wallpaper.

[background]
fit = "fill"
interval_minutes = 5
transition = "random"
transition_duration = 1500
[[background.entries]]
theme = true # the active theme's wallpaper
shown = true
[[background.entries]]
path = "/home/user/wallpapers/dusk.jpg"
shown = true
Key Type Default Description
fit string "fill" "fill" (cover, cropping), "contain" (letterbox) or "natural" (no scaling)
interval_minutes int 5 Minutes between wallpapers (minimum 1)
transition string "fade" How one wallpaper replaces the next — see below
transition_duration int 1500 Length of the transition in ms, 0–10000; 0 is a cut

Each [[background.entries]] table is one wallpaper:

Key Type Default Description
path string Absolute path to an image
theme boolean false Use the active theme’s wallpaper instead of path
shown boolean true Whether it is in the rotation
  • Entries rotate in file order. With one shown entry there is no rotation.
  • Images only: JPEG, PNG, WebP, GIF, BMP. The settings page drops entries whose file is missing or not one of these.
  • The wallpaper surface is created at start-up if [background] has entries or the desktop grid is on. Changing that needs a restart; everything else applies live.

An entry with theme = true shows whatever wallpaper the active theme names (its wallpaper key), looked up when drawn. Switching theme then switches the wallpaper, and config.toml does not change. A theme with no wallpaper adds nothing to the rotation. The default config contains exactly this entry.

In Settings it is the Theme default tile, always first. It cannot be removed; deselecting it returns it to Available.

A theme’s wallpaper is an absolute path, a ~/ path, or a name beside the theme file. A bare name not found there is looked up among the shell’s installed wallpapers ($PREFIX/share/moonswing after make install, or the snap). The shipped themes use wallpaper.jpg, wallpaper-forest.jpg, wallpaper-autumn.jpg, wallpaper-dracula.jpg, wallpaper-midnight.jpg, wallpaper-carbon.jpg and wallpaper-classic95.jpg. Set your own theme’s wallpaper in the theme file or with the Theme wallpaper row on the Theme page.

The Wallpaper page also lists the wallpapers your distribution installed: backgrounds/ and wallpapers/ under each $XDG_DATA_DIRS entry (Ubuntu, Fedora, KDE and others), plus /usr/share/desktop-base and /usr/share/pixmaps/backgrounds. A KDE package appears once, at its largest size. Picking one adds an ordinary entry. These tiles cannot be removed, only deselected; removal is for wallpapers you added.

transition plays on every wallpaper change: the rotation advancing, a theme switch with the theme’s wallpaper shown, or an edit to what is shown.

Value Effect
"fade" Crossfade (default)
"checkerboard" A chequered grid of squares wipes across
"circle" A circle opens from the centre
"flip" The old wallpaper turns over like a card
"slide" The new wallpaper slides in from a random edge
"wipe" An edge sweeps across from a random side
"blinds" Horizontal slats open
"zoom" The new wallpaper fades in while settling from slightly larger
"dissolve" The new wallpaper arrives as scattered tiles
"none" Instant replacement
"random" A different effect each time (never none, never the same twice in a row)

An unknown value reads as "fade". The first wallpaper at start-up has no transition, and changing either transition key takes effect from the next change.