View Single Post
Old 06-15-2014, 11:12 PM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
[root@kindle root]# xwininfo -tree -root | awk '!/1x1\+\-1\+\-1/ && !/com\.lab126/ && !/webreader/ && !/pillowd/ && !/"kb" "Kb"/ && /IsViewable/{print $0}'

Quote:
0x1600003 "DeaDBeeF-0.6.1": ("deadbeef" "Deadbeef") 800x600+0+0 +0+0 MapState=IsViewable
1st attempt to identify interesting windows...

deadlock situation visualised

[root@kindle root]# xwininfo -tree -root | awk '!/1x1\+\-1\+\-1/ && !/com\.lab126/ && !/webreader/ && !/pillowd/ && !/"kb" "Kb"/ && /IsViewable/{print $0}'
Quote:
0x1600085 "Preferences": ("deadbeef" "Deadbeef") 800x600+0+0 +0+0 MapState=IsViewable
0x1600090 "Pick a Color": ("deadbeef" "Deadbeef") 609x289+0+0 +0+0 MapState=IsViewable
0x1600003 "DeaDBeeF-0.6.1": ("deadbeef" "Deadbeef") 800x600+0+0 +0+0 MapState=IsViewable
xwininfo -tree -root | awk '!/1x1\+\-1\+\-1/ && !/com\.lab126/ && !/webreader/ && !/pillowd/ && !/"kb" "Kb"/ && /IsViewable/{print $0}' | sort -r | head -n1

for last result or

xwininfo -tree -root | awk '!/1x1\+\-1\+\-1/ && !/com\.lab126/ && !/webreader/ && !/pillowd/ && !/"kb" "Kb"/ && /IsViewable/{print $1}' | sort -r | head -n1

for its window ID to pass to xdotool.

a

./xdotool windowminimize `xwininfo -tree -root | awk '!/1x1\+\-1\+\-1/ && !/com\.lab126/ && !/webreader/ && !/pillowd/ && !/"kb" "Kb"/ && /IsViewable/{print $1}' | sort | head -n1`

is close...


ALSO:

[root@kindle bin]# ./wmctrl -l -G -x | awk '!/pillowd\.Pillowd/ && !/webreader\.Webreader/ && !/kb\.Kb/ && !/com\.lab126\.booklet\.home/ '
Quote:
0x01600084 0 0 0 800 600 deadbeef.Deadbeef kindle Preferences
0x01600003 0 0 0 800 600 deadbeef.Deadbeef kindle DeaDBeeF-0.6.1
helpful.

Last edited by twobob; 06-16-2014 at 07:11 AM.
twobob is offline   Reply With Quote