Thread: Clara HD Display time when reading
View Single Post
Old 06-02-2020, 05:48 PM   #425
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@Semwize: There's a SIGTERM handler in my fork, but with a twist: it requires "eating" an input event to trigger.

So, technically, yeah, but you'll have to get creative.

Not quite sure how to feed a random event in shell, but evemu can do it, and I happen to ship it in KoboStuff, so forgive me if I don't spend more time on this ;p.

Code:
pkill -TERM miniclock.sh && evemu-event /dev/input/event1 --type EV_KEY --code BTN_TOUCH --value 1 --sync
And then to start it, just run the script in a cmd_spawn:
Code:
exec /usr/local/MiniClock/miniclock.sh
See the telnet example in the NM docs to build a proper toggle out of that.
NiLuJe is offline   Reply With Quote