You are not logged in.

#1 2010-04-20 04:55:57

brenix
Member
From: California
Registered: 2008-03-05
Posts: 185

Xdefaults Color Generation

I'm curious to know if anyone has made or would know how to program a small script to generate random hexadecimal numbers for using in Xdefaults/Xresources. I find myself wasting waaay to much time playing with colors to make my terminals look good. By randomly generating colors, you could easily copy and paste them into your xdefaults and see if you like them. I'm assuming a python or bash script could do this?

There are a few things I see would make it work well:
- Generate them to compliment the Xdefaults (Green/Light Green, Blue/Light Blue  etc...)
- Output (in color) the hex codes
- Output for easy copy/paste into the Xdefaults file like so:

*color0:         #000000
*color1:         #222222

Any help would be great!

Offline

#2 2010-04-26 16:47:34

yngwin
Member
Registered: 2009-05-08
Posts: 67

Re: Xdefaults Color Generation

Not exactly what you're asking for, but a step in that direction is http://inspiration.sweyla.com/code/

Offline

Board footer

Powered by FluxBB