View Single Post
Old 05-01-2012, 02:12 PM   #6
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
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).
ixtab is offline   Reply With Quote