I am really glad I found this thread! I've been using most of this on my PW1 for a few days now.
So I've edited all of these scripts (I'm a big whitespace hater) and I thought you might appreciate a few of my extension changes (comments removed for simplicity);
Code:
#the basic idea here is that you can pad on both sides simultaneously
#and truncate to EIPS_MAXCHARS
eips_print_bottom_centered(){
[ $# -lt 1 ] && return
local kh_eips_string="${1}"
while [ ${#kh_eips_string} -lt ${EIPS_MAXCHARS} ]; do kh_eips_string=" ${kh_eips_string} "; done
usleep 150000
eips 0 $((${EIPS_MAXLINES}-${2:-1}-2)) "${kh_eips_string:0:${EIPS_MAXCHARS}}" >/dev/null
}
Code:
#one line scripts just pollute the directory
#and add an extra layer of complexity
#I simply throw the command into action/params
#heck, some times I throw entire scripts into here
#(see attached craziness)
"name":"Show Network Info",
"action":"lipc-set-prop -s com.lab126.appmgrd start app://com.lab126.booklet.settings?diagnosticMode=\\;711"
"name":"Screensaver - Disable",
"action":"lipc-set-prop com.lab126.powerd preventScreenSaver",
"params":"1",
Anyways, use, don't use, or tell me why I'm wrong
Oh yeah, and the attached file is a menu.json that turns off the PW1/2 front light when the user sets it to 0 using the menu. Its completely self-contained.