View Single Post
Old 05-09-2023, 09:00 AM   #1
jollyblondgiant
Member
jollyblondgiant began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jun 2021
Device: Kindle Touch K5
KTerm cleanup script?

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

Code:
${EXTENSION}/bin/kterm ${PARAM} -e "/mnt/us/extensions/kterm/bin/kterm -k 1" "$@"

lipc-set-prop com.lab126.powerd preventScreenSaver 1
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

Code:
lipc-set-prop com.lab126.powerd preventScreenSaver 1
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.
jollyblondgiant is offline   Reply With Quote