docs: match output matching format for sample config in README

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id71af8c0eced9312e0eca651e0f402b76a6a6964
This commit is contained in:
raf 2026-05-01 13:05:11 +03:00
commit 29c298f71b
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -96,8 +96,8 @@ make sample-config
Chroma looks for configuration files in this order:
1. `~/.config/chroma/chroma.toml`
2. `$XDG_CONFIG_HOME/chroma/chroma.toml`
1. `$XDG_CONFIG_HOME/chroma/chroma.toml`
2. `~/.config/chroma/chroma.toml`
3. `./chroma.toml` (current directory)
#### Sample Configuration
@ -107,23 +107,28 @@ Chroma looks for configuration files in this order:
default_image = "~/.config/chroma/default.jpg"
# Output-specific wallpapers
# Format: output.OUTPUT_NAME = "/path/to/image.jpg"
[output.DP-1]
# Format: [[output]] with name and image keys
[[output]]
name = "DP-1"
image = "~/Pictures/monitor1.jpg"
[output.DP-2]
[[output]]
name = "DP-2"
image = "~/Pictures/monitor2.png"
[output.HDMI-A-1]
[[output]]
name = "HDMI-A-1"
image = "~/Pictures/hdmi_wallpaper.jpg"
# You can also match outputs by description using the desc: prefix
# This is useful when output names change between reboots
# Format: output."desc:DESCRIPTION_PREFIX" = "/path/to/image.jpg"
[output."desc:Samsung"]
[[output]]
name = "desc:Samsung"
image = "~/Pictures/samsung_wallpaper.jpg"
[output."desc:LG Ultra"]
[[output]]
name = "desc:LG Ultra"
image = "~/Pictures/lg_wallpaper.jpg"
```