View Single Post
Old 06-13-2014, 07:43 PM   #35
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
ok so...

export i=`xwininfo -tree -root | awk '/titleBar/{print $1}'` \
&& ./xdotool windowreparent $i `xwininfo -tree -root | awk '!/footerBar/ && /booklet.reader/{print $1}'`


and

export i=`xwininfo -tree -root | awk '/titleBar/{print $1}'` && ./xdotool windowreparent $i 0x51

to go back to normal.

and they are one-off stateful calls. no log tailing.

maybe we could detect book exit.... hmm...

I'll bundle the tools in a bit. They are all in The Touch management bundle but I'll repack them for this I guess

Last edited by twobob; 06-13-2014 at 07:53 PM. Reason: tidier. one less process
twobob is offline   Reply With Quote