XCOLORS(1)
π XCOLORS(1) π
okay so bestie, welcome to the xcolors page β it lives in the General Commands Manual section of your fave manual collection, and it's literally about showing off every color name your X server knows π
β¨ NAME β¨
xcolors β display all X11 color names and colors π¨
π¦ SYNOPSIS π¦
xcolors [ -start color ] [ -near color ] [ -distance howfar ]
πΈ DESCRIPTION πΈ
So xcolors reads the rgb.txt file β the one that defines all the color names your X server knows β and then displays all the colors it finds. that's it, that's the vibe π
At the top of the window there's a sample region with text in it. Click on any of the color names and the color of that sample text changes, like magic β¨ Mouse button 1 changes the foreground; button 2 changes the background. You can also edit the text itself, no cap.
And when you're done? Just type q and the program exits. periodt. π
π OPTIONS π
On top of the usual X Toolkit options, xcolors understands these command line options:
-start nameβ specify a color name to start with; colors that come before this one in thergb.txtfile get skipped entirely π this one's a lifesaver if there are more colors than will fit on your screen or in your colormap.-rgbfile filenameβ specify an alternate color database file to read. custom database, custom vibes π-near nearcolorβ only show colors near this one in the RGB space. All colors within a sphere in the RGB-space centered on nearcolor are displayed. it's giving "give me the neighbors" π«Ά-distance howfarβ defines how close colors have to be to nearcolor to be displayed. This option sets the radius of the sphere used by the-nearoption. The scale is such that the RGB cube is 256 units on a side. The default is64. π₯
π§ ACTIONS π§
set-foreground([color])β Set the foreground color of the sample region. If no color is provided, the color is taken from the border color of the widget where the action occurred. sneaky but iconic πset-background([color])β Same asset-foreground()but sets the background color. twin behavior, different job πquit()β Exitxcolors. bye bestie π
β RESOURCES β
Xcolors has a few top-level application resources that allow customizations that are specific to xcolors:
startColor(classStartColor) β See the-startoption.rgbFile(classRgbFile) β See the-rgbfileoption.nearColor(classNearColor) β See the-nearoption.nearDistance(classNearDistance) β See the-distanceoption.
π WIDGET HIERARCHY π
Knowing the name and position in the hierarchy of each widget is useful when specifying resources for them. In the chart below, the class and name of each widget is given. iykyk π«Ά
Xcolors xcolors
Paned panes
AsciiText sample
Viewport viewport
Box colors
Label colorname
Label colorname
.
.
.
π FILES π
/usr/lib/X11/rgb.txtβ X color names and values. the source of truth fr fr π
π BUGS π
- Assumes that all names for the same color are consecutive in the
rgb.txtfile. that's the assumption, bestie, don't come for her π - Because
xcolorscannot read the server's color name database, the color names it uses may not match those in the server. This is most likely to happen ifxcolorsis run from a remote host. so like... remote-host behavior is a little chaotic, fair warning π - The program would be faster if it used gadgets instead of widgets for the color spots. performance tea β noted and documented.
π AUTHOR π
Stephen Gildea, MIT X Consortium π
and that's the whole page, babe π this one's from X Version 11, dated 3 October 1991 β vintage in the best way, lowkey iconic, and honestly? it ate ππ β¨
π¦ where this page comes from
- opensuse-leap 16.0: xcolors 91.10.4-bp160.1.12 Β· SUSE-Public-Domain
- opensuse-leap 16.0: xcolors 91.10.4-bp160.1.12 Β· SUSE-Public-Domain
- opensuse-leap 16.0: xcolors 91.10.4-bp160.1.12 Β· SUSE-Public-Domain
- opensuse-leap 16.0: xcolors 91.10.4-bp160.1.12 Β· SUSE-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms