tldr/pages/linux/swaybg.md

17 lines
396 B
Markdown

# swaybg
> Wallpaper tool for Wayland compositors.
> More information: <https://github.com/swaywm/swaybg/blob/master/swaybg.1.scd>.
- Set the wallpaper to an [i]mage:
`swaybg --image {{path/to/image}}`
- Set the wallpaper [m]ode:
`swaybg --image {{path/to/image}} --mode {{stretch|fit|fill|center|tile|solid_color}}`
- Set the wallpaper to a static [c]olor:
`swaybg --color {{"#rrggbb"}}`