swaybg: update page (#23505)

This commit is contained in:
Lena Pastwa
2026-08-07 12:53:36 +00:00
committed by GitHub
parent 2381d65312
commit f9c0843a47
+12 -3
View File
@@ -1,16 +1,25 @@
# swaybg
> Wallpaper tool for Wayland compositors.
> Note: Sway starts `swaybg` automatically if a wallpaper is set in the config file.
> More information: <https://github.com/swaywm/swaybg/blob/master/swaybg.1.scd>.
- Set the wallpaper to an image:
- Set the wallpaper on all monitors to an image:
`swaybg {{[-i|--image]}} {{path/to/image}}`
- Set the wallpaper mode:
- Set the image scaling mode (default: `stretch`):
`swaybg {{[-i|--image]}} {{path/to/image}} {{[-m|--mode]}} {{stretch|fit|fill|center|tile|solid_color}}`
- Set the wallpaper to a static color:
`swaybg {{[-c|--color]}} "{{#rrggbb}}"`
`swaybg {{[-c|--color]}} {{rrggbb}}`
- Set the wallpaper on a specific monitor:
`swaybg {{[-o|--output]}} {{HDMI-1}} {{[-i|--image]}} {{path/to/image}}`
- Set different wallpapers on multiple monitors:
`swaybg {{[-o|--output]}} {{HDMI-1}} {{[-i|--image]}} {{path/to/image}} {{[-o|--output]}} {{DP-1}} {{[-i|--image]}} {{path/to/image}}`