mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
swaybg: update page (#23505)
This commit is contained in:
+12
-3
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user