← 返回命令列表

Linux command

swww 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start the wallpaper daemon

swww-daemon

Set a wallpaper image

swww img [path/to/image]

Set wallpaper on specific monitors

swww img -o [output1,output2] [path/to/image]

Restore the last set wallpaper

swww restore

Query current output and wallpaper information

swww query

Stop the daemon

swww kill

Set wallpaper with a transition effect

swww img --transition-type [wipe] --transition-duration [1] [path/to/image]

Clear the screen with a solid color

swww clear [RRGGBB]

说明

swww is an efficient animated wallpaper daemon for Wayland compositors. It supports animated GIFs and various image formats (JPEG, PNG, WebP, AVIF, SVG, etc.) with smooth transition effects between wallpapers. The daemon can be controlled at runtime without restart. The daemon (swww-daemon) must be started first, then the swww client controls wallpaper settings. Per-output wallpaper control allows different images on multiple monitors.

参数

-o, --outputs _names_
Target specific displays (comma-separated)
--transition-type _type_
Effect: simple, center, outer, wipe, left, right, top, bottom, any, random
--transition-step _n_
Smoothness (1-255)
--transition-fps _n_
Frame rate (1-255, default: 30)
--transition-duration _seconds_
Transition duration
--resize _mode_
Resize mode: crop, fit, no
--fill-color _color_
Color for unfilled areas

FAQ

What is the swww command used for?

swww is an efficient animated wallpaper daemon for Wayland compositors. It supports animated GIFs and various image formats (JPEG, PNG, WebP, AVIF, SVG, etc.) with smooth transition effects between wallpapers. The daemon can be controlled at runtime without restart. The daemon (swww-daemon) must be started first, then the swww client controls wallpaper settings. Per-output wallpaper control allows different images on multiple monitors.

How do I run a basic swww example?

Run `swww-daemon` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o, --outputs _names_ do in swww?

Target specific displays (comma-separated)