go-game.sh
PHP Code:
#xdotool windowminimize 0x1200002 ==
for i in $(xwininfo -tree -root | grep "home" | \
grep -o -e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
echo item: $i
xdotool windowminimize $i
done
for i in $(xwininfo -tree -root | grep "blankBackground" | \
grep -o -e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
echo item: $i
xdotool windowminimize $i
done
for i in $(xwininfo -tree -root | grep "searchBar" | \
grep -o -e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
echo item: $i
xdotool windowminimize $i
done
# can very occasionally require this twice
#(awesome getting in the way?) so we do it twice anyways.
wmctrl -r L:A_N:titleBar_ID:system -e '0,0,0,600,1'
wmctrl -r L:A_N:titleBar_ID:system -e '0,0,0,600,1'
stop-games.sh
PHP Code:
#!/bin/sh
for i in $( xdotool search --classname webreader ); do
echo item: $i
xdotool windowactivate $i
done
#xdotool windowminimize 0x1200002 ==
for i in $(xwininfo -tree -root | grep "home" | \
grep -o -e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
echo item: $i
xdotool windowactivate $i
done
for i in $(xwininfo -tree -root | grep "blankBackground" | \
grep -o -e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
echo item: $i
xdotool windowactivate $i
done
for i in $(xwininfo -tree -root | grep "searchBar" | \
grep -o -e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
echo item: $i
xdotool windowactivate $i
done
wmctrl -r L:A_N:titleBar_ID:system -e '0,0,0,600,30'
This is far-as-I-can-tell a working "one shot" solution.
geometry based workarounds for status bar now in place.
Provides a complete, "safe", screen tear-down and build-back.
Allowing the Kindle system to run unmolested and us to hack on screen content.
EDIT: To use these tools the way I use them:
I configure my system as outlined at minimodding.
http://minimodding.com/article9-Kind...ng-custom-apps
I am thinking of possibly making the whitney button have a triple-click to toggle the tear-up and tear-down. (separate process / thread to game) in case of "accidents", or maybe I could test for geometry? undecided.
no, now I'm thinking use TCL... maybe
either way this works.
Provided "as-is" - you would want SSH access running to use this at present.
Cheers.