
4 Jun
2009
4 Jun
'09
9:10 p.m.
On Thu, 4 Jun 2009 13:33:54 -0700 (PDT)
Anze Slosar
A couple of days a made a trivial hack that made me very happy, so I want to share the trick here. The trick is to start rxvt-unicode with
-bg \\#`randcolor.py` -fg \\#EEEEEE
where randcolor is a simple python script that returns a random hex color with rgb random in range(0..100) (to be dark enough for white font): ......
Yeah, I liked that idea several years ago, it was inspired by old OpenWindows by Sun :) Actually to avoid "extra dependency" on python you can use a shell variable: # echo $RANDOM it will print a random number every time you use it. Cheers, Sergey