View Single Post
Old 06-13-2014, 09:31 PM   #36
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
Something like:

PHP Code:
showlog -awk '!/home/ && /booklet.reader/' |  awk '/SENT/{print $0}' | \
while 
read MYVAR; do  echo "$MYVAR| \
awk '/PAUSE/{system("./showtime-restore.sh")}' \
&& echo 
"$MYVAR| \
awk '/GO/{system("./showtime-header.sh")}'done 

with:showtime-header.sh
PHP Code:
#!/bin/bash
LD_LIBRARY_PATH="../lib:$LD_LIBRARY_PATH"
export i=`xwininfo -tree -root | awk '/titleBar/{print $1}'
./
xdotool windowreparent $i `xwininfo -tree -root | awk '!/footerBar/ && /booklet.reader/{print $1} |head -n1'

and:showtime-restore.sh
PHP Code:
export i=`xwininfo -tree -root | \
awk '/titleBar/{print $1}'
` \
&& ./
xdotool windowreparent $i 0x51 

dynamically sticks the top status bar over the book while reading.

Possible to resize it a tiny bit smaller / move it around/ via xdotool.
Attached Thumbnails
Click image for larger version

Name:	screenshot_2014-06-14T03_59_34-0100.gif
Views:	370
Size:	42.1 KB
ID:	124110  

Last edited by twobob; 06-13-2014 at 11:00 PM.
twobob is offline   Reply With Quote