LinuxCommandLibrary

xwallpaper

TLDR

Set wallpaper centered

$ xwallpaper --center [image.jpg]
copy
Set wallpaper zoomed to fill
$ xwallpaper --zoom [image.jpg]
copy
Stretch to fit screen
$ xwallpaper --stretch [image.jpg]
copy
Tile wallpaper
$ xwallpaper --tile [image.png]
copy
Set for specific output
$ xwallpaper --output [HDMI-1] --zoom [image.jpg]
copy
Different wallpapers per output
$ xwallpaper --output [HDMI-1] --zoom [wall1.jpg] --output [eDP-1] --center [wall2.jpg]
copy
Run as daemon for output changes
$ xwallpaper --daemon --zoom [image.jpg]
copy

SYNOPSIS

xwallpaper [options] [mode] file...

DESCRIPTION

xwallpaper is a wallpaper setting utility for X11. It supports JPEG, PNG, and XPM formats with various scaling modes to fit different display configurations.
The tool supports multi-monitor setups through RandR, allowing different wallpapers per output. In daemon mode, it monitors output changes and redraws wallpapers automatically when displays are connected or resized.
Wallpaper atoms are set to support semi-transparent backgrounds in compatible applications.
For Wayland, consider using swaybg or wbg instead.

PARAMETERS

--center file

Center image without scaling.
--zoom file
Zoom to fill, cropping if needed.
--maximize file
Scale to fit without cropping.
--stretch file
Stretch to fill, ignoring aspect ratio.
--tile file
Tile image from upper left.
--focus file
Focus on selection with --trim.
--output name
Target specific output (use xrandr to list).
--screen screen
Target specific X screen.
--trim WxH[+X+Y]
Trim input image.
--daemon
Redraw on output changes.
--clear
Clear wallpaper.
--no-randr
Disable RandR support.
--no-atoms
Don't set wallpaper atoms.
--debug
Enable debug output.
--version
Display version.

CAVEATS

X11 only; won't work under pure Wayland. Daemon mode requires RandR support. Image formats depend on build configuration. Some window managers may override wallpaper.

HISTORY

xwallpaper was created by Tobias Stoeckmann as a lightweight, dependency-minimal wallpaper setter for X11. It focuses on correctness and minimal resource usage compared to larger tools like feh.

SEE ALSO

feh(1), nitrogen(1), hsetroot(1), xrandr(1)

Copied to clipboard