|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
20% cooler.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 92
Karma: 364266
Join Date: Oct 2012
Location: Poznań, Poland
Device: Kindle Paperwhite
|
eventHandler - easy way to run scripts on boot and screensaver on/off events
(please note that it's untested on Touch, but it should work) I don't know if anything like that already exists. I just created it for myself and now decided to learn how to package stuff with kindletool ![]() It's a very simple shell script used to run other shell scripts on particular events - boot, suspend or resume. Boot is self-explanatory, suspend is going to screen saver and resume is returning from screen saver. After installing eventHandler you'll see a scripts directory created in your user partition. It contains three subdirectories - boot, suspend and resume. When event occurs, eventHandler runs all scripts in directory matching given event. It's simple as that This gives you possibility to run simple scripts without having to install usb networking and other advanced stuff. You'll just need a jailbreak.Installing is easy: just put install file in root directory of user partition and select "Update your Kindle" from Settings screen. Uninstalling follows the same pattern. Package contains also few scripts used by me which can be taken as examples: Spoiler:
Please note that example scripts are only tested on Paperwhite. NOTE: eventHandler runs all your scripts as root, so be careful with what you include in your scripts! Running "rm -rf /" isn't probably a good idea ![]() If you have Kindle Touch or Kindle Paperwhite, install kindle5 version. If you have non-touch Kindle 4, install kindle4 version. Please note that Kindle 4 version is untested! Enjoy! [edit] Updated to 0.11 version which should fix bug reported by stepk and which brings (untested) install files for Kindle 4 (non-touch). [edit] Updated to 0.2 version which now works properly with magnetic cover.
__________________
http://dosowisko.net/ | http://www.superderpy.com/ Debian on Kindle: http://www.mobileread.com/forums/sho....php?p=2289700 Last edited by dos1; 03-01-2013 at 06:20 PM. Reason: update to 0.2 |
|
|
|
|
|
#2 |
|
Horse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 7087247
Join Date: Apr 2012
Device: Kindle3G+WiFi
|
It's almost like Kite! (but lacking in the launching scripts from the home screen area...)
Looks fancy though... It would be cool to write this for the K3 or K4 as well. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 144
Karma: 511590
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
Thanks for this. Unfortunately install.sh fails on my KT because it assumes that /usr/local exists, while it really doesn't - on my almost untouched KT.
|
|
|
|
|
|
#4 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 5288897
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW, K5 B011, K3 us, K4, DXG, XDA I&II, Omnia, Ematic E6 + E8 :) etc.
|
I had an issue in DIAGS where it (booting diags) would clean down my /usr/local
Never not had one. Good point though. best to do a [ -e ] or z or f or whatever I suppose YAY CORNER CASES!
__________________
Audiophile and electron bully. My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him. The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set |
|
|
|
|
|
#5 | |
|
20% cooler.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 92
Karma: 364266
Join Date: Oct 2012
Location: Poznań, Poland
Device: Kindle Paperwhite
|
Quote:
BTW. I've included version for Kindle 4, could someone test if it works? (note that example scripts probably won't work without adjusting)
__________________
http://dosowisko.net/ | http://www.superderpy.com/ Debian on Kindle: http://www.mobileread.com/forums/sho....php?p=2289700 |
|
|
|
|
|
|
#6 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 144
Karma: 511590
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
OK, it's working now, thanks.
How do you generate the server content for the rss feed script? I mean, do you run the calibre client on a debian box and save generated .pobi files to the http server, or do you run calibre as a content server? |
|
|
|
|
|
#7 |
|
20% cooler.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 92
Karma: 364266
Join Date: Oct 2012
Location: Poznań, Poland
Device: Kindle Paperwhite
|
I have installed Calibre on my VPS and created cron jobs for updating pobi files in specified directory, which is exported to the world via rsync daemon.
__________________
http://dosowisko.net/ | http://www.superderpy.com/ Debian on Kindle: http://www.mobileread.com/forums/sho....php?p=2289700 |
|
|
|
|
|
#8 |
|
20% cooler.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 92
Karma: 364266
Join Date: Oct 2012
Location: Poznań, Poland
Device: Kindle Paperwhite
|
0.2 version is now up - I've fixed a bug which prevented scripts from being launched when using magnetic cover. Enjoy!
__________________
http://dosowisko.net/ | http://www.superderpy.com/ Debian on Kindle: http://www.mobileread.com/forums/sho....php?p=2289700 |
|
|
|
|
|
#9 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 5288897
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW, K5 B011, K3 us, K4, DXG, XDA I&II, Omnia, Ematic E6 + E8 :) etc.
|
ROCK HANDS!!!
__________________
Audiophile and electron bully. My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him. The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set |
|
|
|
![]() |
| Tags |
| events, kindle, screensaver |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| K5 is it possible to run k5 launchpad scripts on k5 | techiemonkey | Kindle Developer's Corner | 3 | 07-30-2012 09:10 AM |
| Kite on K3G launches scripts randomly on boot or unplug | jmseight | Kindle Developer's Corner | 0 | 03-23-2012 01:55 PM |
| Kindle tries to run C/++ applications like sh scripts? | dnR | Kindle Developer's Corner | 1 | 01-09-2011 07:45 AM |