I've got a Kindle Touch with KUAL and KTerm which I use mainly to ssh into a raspberry pi 4(00) as a kind of e-ink typewriter. I have modified the /mnt/us/extensions/kterm/bin/kterm.sh script to include the line from /bin/ds.sh
and this works like a charm to prevent the screen from sleeping while I'm working on my raspi. However, in order to re-enable sleep mode, I have to use a KUAL extension that basically runs
This still works, but it's an extra couple of keystrokes (fingerstrokes? ew?) 1I'd like to forget about and never have to do again.
The best way would be to trap ${} EXIT in the kterm.sh file but I can't get it to execute when I exit kterm. My next bet would be to execute the script in a file like .bash_logout or in any .*rc file, but the home directory is read-only.
Code:
${EXTENSION}/bin/kterm ${PARAM} -e "/mnt/us/extensions/kterm/bin/kterm -k 1" "$@"
lipc-set-prop com.lab126.powerd preventScreenSaver 1
Code:
lipc-set-prop com.lab126.powerd preventScreenSaver 1
The best way would be to trap ${} EXIT in the kterm.sh file but I can't get it to execute when I exit kterm. My next bet would be to execute the script in a file like .bash_logout or in any .*rc file, but the home directory is read-only.