Set your backgrounds

Choose an image or color

Tessera draws solid colors, generated wallpapers, PNGs, and JPEGs itself. Use an absolute image path or one beginning with ~/; image paths aren't relative to your configuration file.

(config
  outputs: (list
    (output "*" background: "~/Pictures/hills.png" background-mode: 'fill)
    (output "DP-2" background: #x232635ff)
    (output "eDP-1" background: "~/Pictures/hills.png" background-mode: 'fit
                      background-fallback: #x1d2021ff)))

Every output gets the image from the "*" entry, cropped to fill it. DP-2 has a solid color instead, and eDP-1 shows the whole image with dark bars around it.

Colors are written #xRRGGBBAA. A background is always opaque, so its last two digits are ignored, and you can just write ff. The fallback color defaults to black.

Fill preserves the image's proportions while cropping it to cover the output. Fit preserves the whole image with fallback-colored bars. Stretch scales each axis independently. Center keeps one image pixel per output pixel; tile repeats those pixels from the top-left corner.

Follow your palette

With no background field, the configuration follows the active palette's wallpaper. Use background: 'theme on one output to request it there. The theme commands choose Facets or Drift, a palette, and a seed:

tessera theme list
tessera theme apply workbench --wallpaper drift --seed 4
tessera theme preview lichen
tessera theme revert
tessera theme wallpaper facets

Apply keeps the current recipe and seed unless you supply them. Preview is temporary; revert restores the saved selection. Background changes keep the old image until the replacement is ready. Set background: #f when starting your own layer-shell background program through startup:.

Handle an image that won't load

Missing, damaged, or unsupported images use the fallback color and report a problem. Read it with tessera eval '(problems)'. Tessera decodes PNG and 8-bit baseline or progressive JPEG, including EXIF orientation. It ignores embedded color profiles. Images may be at most 128 MiB, 16384 pixels per side, and 40 million pixels overall; JPEG decoding also has a 256 MiB working limit.

Other formats and oversized images use swaybg if installed. Without it, convert the image to PNG or JPEG, or resize it. Switching between Tessera and swaybg may briefly leave that output without a background.

Save a generated wallpaper

tessera wallpaper save ~/Pictures/wallpaper.png
tessera wallpaper save ~/Pictures/wallpaper-small.png --size 1920x1080

The first command uses the focused output's generated selection and pixel dimensions. An image-file or solid-color background has no recipe to export. Without an active session, give a size to export the selected theme's recipe. The PNG includes the recipe, palette, seed, parameters, and dimensions needed to regenerate it. The command waits for the write to finish.