View Single Post
Old 10-26-2012, 08:42 PM   #1
dos1
20% cooler.
dos1 ought to be getting tired of karma fortunes by now.dos1 ought to be getting tired of karma fortunes by now.dos1 ought to be getting tired of karma fortunes by now.dos1 ought to be getting tired of karma fortunes by now.dos1 ought to be getting tired of karma fortunes by now.dos1 ought to be getting tired of karma fortunes by now.dos1 ought to be getting tired of karma fortunes by now.dos1 ought to be getting tired of karma fortunes by now.dos1 ought to be getting tired of karma fortunes by now.dos1 ought to be getting tired of karma fortunes by now.dos1 ought to be getting tired of karma fortunes by now.
 
dos1's Avatar
 
Posts: 93
Karma: 364674
Join Date: Oct 2012
Location: Poznań, Poland
Device: Kindle Paperwhite 1
Drawing app on Paperwhite and Kindle Touch

When playing with my Paperwhite's console, I noticed a tiny app called xtestlab126. It looks like a small test app for touchscreen, but it works well as simple drawing application.

It has one major issue - the only way to exit it is via console.

I liked an idea of having simple drawing app available at no cost, for instance for quick tick-tac-toe sessions or something like that, so I wrote small shell script which fixes the issue mentioned above by closing app on pressing power button or closing magnetic case cover.

Code:
#!/bin/sh
/usr/bin/xtestlab126 &
( dbus-monitor "interface='com.lab126.powerd',member='goingToScreenSaver'" --system; killall xtestlab126 ) &
sleep 1
killall -INT dbus-monitor
I have saved it in /usr/bin/draw.sh and added it to search bar commands so I can run it by typing ";draw" there, but you can have different ideas, like running it via some graphical launcher

PS. Tap with two fingers to clear screen It lacks repainting though, so it ghosts...
dos1 is offline   Reply With Quote