X11
From Noah.org
Jump to navigationJump to searchGet 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:-