You could start by looking at /etc/xdg/awesome/rc.lua.
It contains code to handle screenshots (which involve long-pressing the home button, while also tapping). It should be straightforward to modify this to only send a "go to home screen" event if the button has been pressed for longer than, say, a second.
The challenge is to also make it determine if it is currently showing the reader application, and to send a "click" event to the correct screen region instead (and to act normally otherwise).
|