X11
From Noah.org
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:-