Spoiler:
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'
mirrored at
https://www.mobileread.com/forums/sho...16&postcount=4
I'm currently testing that as a one shot solution.
few issue with statusbar being "hid" long term, may do a geometry workaround in the medium term. geometry workaround now in place.
Otherwise Now useful. Provides a complete "safe" screen tear-down and build-back.
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
Cheers