Difference between revisions of "X11"

From Noah.org
Jump to navigationJump to search
m
Line 1: Line 1:
 
+
[[Category:Engineering]]
== Get Background color of shell ==
+
== Get background color of shell ==
  
 
This is a hack. I'm still working on this.
 
This is a hack. I'm still working on this.

Revision as of 19:42, 10 December 2009

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:-