X11

From Noah.org
Revision as of 19:42, 10 December 2009 by Root (talk | contribs)
Jump to navigationJump to search

Get background color of shell

This is a hack. I'm still working on this.

Should be average color, but seems to be more like median. Pretty fast:

time xwd -silent -nobdrs -id $WINDOWID | convert - -gravity center -crop 1x1+0+0 -depth 8 txt:-

Average, Slower:

time xwd -silent -nobdrs -id $WINDOWID | convert - -colors 1 -crop 1x1+0+0 -depth 8 txt:-

Desktop icon of a window:

time xwd -silent -nobdrs -id $WINDOWID | convert - -crop 32x32+0+0 -depth 8 xpm:-