Difference between revisions of "X11"
From Noah.org
Jump to navigationJump to searchm (Created page with ' == 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: <pre> time xwd -silent -…') |
|||
Line 12: | Line 12: | ||
<pre> | <pre> | ||
time xwd -silent -nobdrs -id $WINDOWID | convert - -colors 1 -crop 1x1+0+0 -depth 8 txt:- | time xwd -silent -nobdrs -id $WINDOWID | convert - -colors 1 -crop 1x1+0+0 -depth 8 txt:- | ||
+ | </pre> | ||
+ | |||
+ | Desktop icon of a window: | ||
+ | <pre> | ||
+ | time xwd -silent -nobdrs -id $WINDOWID | convert - -crop 32x32+0+0 -depth 8 xpm:- | ||
</pre> | </pre> |
Revision as of 19:38, 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:-