title: How can I grab the color of a pixel on my desktop? (Linux)
body: <p>I want to grab the color of a pixel with known coordinates on my Linux desktop.</p>
  
  <p>Until now, I've used <code>"import -window SomeWindow -crop 1x1+X+Y /tmp/grab.jpg"</code>
  then extracting the pixel value using Python and <a href="http://en.wikipedia.org/wiki/Python_Imaging_Library" rel="noreferrer">PIL</a>.</p>
  
  <p>This does the job, but since import grabs the whole window before cropping, it's very slow :(</p>
  
  <p>Are there any clever way to grab the color of only one pixel? I know both relative (window) and absolute coordinates. </p>
  
  <p>A Python or shell script would be preferable, but if you know some clever C/<a href="http://en.wikipedia.org/wiki/X_Window_System" rel="noreferrer">X11</a> functions, also please let me know :)</p>