XCOLORIZE(1) USER COMMANDS XCOLORIZE(1)
NAME
xcolorize - start X client with pleasant background color
SYNOPSIS
xcolorize [-help] [-dark] [-only] [-rv] [-old|-oldsh|-sun]
[command [args ...]]
DESCRIPTION
The xcolorize program is used to give an X client program a
pleasant randomly generated background color. It inserts
the appropriate -fg and -bg options in the client command
line.
OPTIONS
-help Prints a help message.
-dark Generates a dark color background and white fore-
ground instead of the default pastel color back-
ground and black foreground.
-only Generates only a random color specification instead
of complete foreground and background color options.
-rv Reverses the generated foreground and background
colors.
-old Generates the old #RRGGBB syntax instead of the
newer rgb:RR/GG/BB syntax. Useful for pre-X11R5
clients which don't understand the new syntax.
-oldsh Same as -old, but prefixes the # character with a
backslash to prevent it from being treated as a
shell comment character. This is sometimes useful
when the X client being colorized is implemented as
a shell script.
-sun Generates XView/SunView decimal RGB syntax. Useful
when colorizing SunView and some XView clients which
don't understand X color syntax.
command [args ...]
The generated color options are inserted between the
command and the first argument supplied (if any).
If no command is given, the generated color options
are written to stdout.
EXAMPLE
Below is an example .xinitrc file which uses xcolorize to
make the screen more attractive:
xrdb -load $HOME/.Xresources
xcolorize -dark xterm -C -title Console -geometry 80x24+0+0 &
X Version 11 Last change: Release 6 1
XCOLORIZE(1) USER COMMANDS XCOLORIZE(1)
xsetroot -solid `xcolorize -dark -only`
xcolorize xclock -geometry 50x50-0+0 -bw 0 &
xcolorize -dark xload -geometry 50x50-50+0 -bw 0 &
xcolorize xterm -geometry 80x24+0-0 &
twm
SEE ALSO
X(1)
AUTHOR
David DiGiacomo, david@slack.com
BUGS
The random color generation algorithm is not very good.
There should be a way to generate both foreground and back-
ground colors (non-clashing).
If you colorize too many applications you'll fill up your
colormap.
X Version 11 Last change: Release 6 2