home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 September - Disc 1 / PCNET_CD_2006_09.iso / linux / puppy-barebones-2.01r2.iso / pup_201.sfs / usr / sbin / grabcshell < prev    next >
Encoding:
Text File  |  2004-01-24  |  369 b   |  13 lines

  1. #!/bin/sh
  2.  
  3. grabc > /tmp/rgbgrabc.txt 2>&1
  4. #BLURB1="`grabc`"
  5. RGBHEX="`cat /tmp/rgbgrabc.txt | tail -n 2 | head -n 1`"
  6. RGBDEC="`cat /tmp/rgbgrabc.txt | tail -n 1`"
  7.  
  8. xmessage -center -bg "#c0ffc0" -title "RGB color picker" -file -<<MSG1
  9. The Red-Green-Blue components of the color you selected are
  10. in decimal (values 0-255): $RGBDEC
  11. in hex     (values 00-FF): $RGBHEX
  12. MSG1
  13.