From 70e19e8246ed1c9ecfe27e144002497848b66422 Mon Sep 17 00:00:00 2001 From: Jens Korinth Date: Sun, 14 Apr 2024 20:30:24 +0200 Subject: [PATCH] Add documentation for .Xresources colors --- doc/themes.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/themes.md b/doc/themes.md index fa3b50377a..adffd4eb51 100644 --- a/doc/themes.md +++ b/doc/themes.md @@ -124,8 +124,12 @@ cpu_boost_off = "OFF" # Available theme overrides -All `bg` and `fg` overrides are html hex color codes like `#000000` or `#789ABC`. A fourth byte for alpha (like `#acbdef42`) works on some systems. `00` is transparent, `FF` is opaque. +All `bg` and `fg` overrides are either +* html hex color codes like `#000000` or `#789ABC`; a fourth byte for alpha (like `#acbdef42`) works on some systems. `00` is transparent, `FF` is opaque, or +* a reference to another override, e.g., `{ link = "idle-bg" }`, or +* a reference to a color name defined in `~/.Xresources`, e.g., `x:background` looks for a line like `*background: #aabbcc` in `~/.Xresources` (see also [.Xresources](https://wiki.debian.org/Xresources)). + The tints are added to every second block counting from the right. They will therefore always brighten the block and never darken it. The alpha channel, if it works, can also be alternated in the same way. Feel free to take a look at the provided color schemes for reference.