I wrote this a week ago to accomplish exactly what you are asking.
Quote:
Capture is able to take input from the firmware and use that info to execute shortcuts.
all search queries from the main menu with ;debugOn are saved in the logs, capture looks through the logs at a set interval. Proper commands start with "cmd." as a prefix followed by the command ending with "," then any arguments it may take.
example - "cmd.say, hello word" executes the command 'say' with the arguments "hello world" (say uses the kindle's tts)
commands: (add any command by adding a case in /usr/sbin/capture)
cmd.say, speak to me - use kindle's tts to speak
cmd.refresh, - dbus-send --system /default com.lab126.powerd.resuming int32:1
cmd.restart - restarts the framework
|
http://gitbrew.org/~dasmoover/kindle...kindle-0.1.zip
^ Capture script to go into /usr/sbin/ and the /etc/init.d/ script for it.
Quote:
chmod a+x /usr/sbin/capture /etc/init.d/capture.init.d
ln -s /etc/init.d/capture.init.d /etc/rc5.d/S99capture
|