Skip to content

Commit

Permalink
Add documentation for .Xresources colors
Browse files Browse the repository at this point in the history
  • Loading branch information
jkorinth committed Apr 14, 2024
1 parent bae7b0b commit be88b17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit be88b17

Please sign in to comment.