Thread: JBPatch
View Single Post
Old 02-21-2013, 10:35 AM   #1258
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Jimmy-Jim View Post
There's a setorientation.sh script in the helper extensions. There are no buttons defined to use it, however.

Spoiler:
Code:
#!/bin/sh
# I think this is now creds of Ixtab / Yifan Lu. repacked by Twobob.
SETPROP=/usr/bin/lipc-set-prop
PREFS=/var/local/java/prefs/com.amazon.ebook.framework/prefs

case "$1" in
"L"|"R")
        $SETPROP com.lab126.winmgr orientationLock $1
#        $SETPROP com.lab126.winmgr refreshOnTurn true
        ;;
"U"|"D")
        $SETPROP com.lab126.winmgr orientationLock $1
#        $SETPROP com.lab126.winmgr refreshOnTurn $({ grep onPageTurn $PREFS || echo false ; } | sed 's/.*=//')
        ;;
esac
I did not write that he **never** makes mistakes, just that he makes fewer than lab126 does.

There was a spell of problems with parameter passing and this little nit was probably the victim of 'clean up' after that problem was dealt with.
knc1 is offline   Reply With Quote