Something like:
PHP Code:
showlog -f | 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.