---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# swaybg

> Wallpaper tool for Wayland compositors.
> More information: <https://github.com/swaywm/swaybg/blob/master/swaybg.1.scd>.

- Set the wallpaper to an image:

`swaybg {{[-i|--image]}} {{path/to/image}}`

- Set the wallpaper mode:

`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}}"`
