home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- grabc > /tmp/rgbgrabc.txt 2>&1
- #BLURB1="`grabc`"
- RGBHEX="`cat /tmp/rgbgrabc.txt | tail -n 2 | head -n 1`"
- RGBDEC="`cat /tmp/rgbgrabc.txt | tail -n 1`"
-
- xmessage -center -bg "#c0ffc0" -title "RGB color picker" -file -<<MSG1
- The Red-Green-Blue components of the color you selected are
- in decimal (values 0-255): $RGBDEC
- in hex (values 00-FF): $RGBHEX
- MSG1
-