Skip to main content

Module color

Module color 

Source
Expand description

Color specification

Colors can be specified in any of these forms:

  • none or an empty string for no color.
  • auto to let the output determine the color.
  • #RRGGBB[AA]. The alpha byte ranges from 00 (transparent) to FF (opaque). Alpha is optional and defaults to FF.
  • hsv:H:S:V[:A] for an HSVA color. Hue is in degrees; saturation, value, and optional alpha are percentages from 0 to 100. Alpha defaults to 100.
  • x:name to look up a color in ~/.Xresources. For example, x:background uses the value of *background.
  • sway:name to use a color from the active sway bar configuration. For example, sway:urgent_workspace_bg uses the bar’s urgent workspace background color. See sway for more details.

Modules§

sway
Sway colors
xresources

Structs§

Hsva
An HSVA color (hue, saturation, value, alpha).
Rgba
An RGBA color (red, green, blue, alpha).

Enums§

Color

Functions§

approx