View Single Post
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#52
Originally Posted by guillermorojaz View Post
HOLA. congratulations on your work. I find it very ineresante.
You could create a script to:
VOLUME + = torch - on
VOLUME - = torch - off
I would greatly appreciate it
gracias!
v0.4 supports this, through modification of the config file
paste the below code into /home/user/.config/n9-button-monitor.conf

Code:
#just to torch on/off for guillermorojaz
torchAutoShutOffTimeMs=60000
longClickDelayMs=400
doubleClickDelayMs=400
trebleClickDelayMs=600
action=torchOn,volumeUp,singleClick,screenLocked
action=torchOff,volumeDown,singleClick,screenLocked
p.s.: if anyone should be overwhelmed with charitable urges and needs an outlet, ive added a flattr button and a paypal email to the first post.

p.p.s.: be careful with these easy on/off buttons for torch; the flash could turn on in your pocket.
the example above auto-turns off after 60 seconds, as a precaution against this. you can make it last longer by changing 'torchAutoShutOffTimeMs=60000' to your liking. to make the flash stay on for an hour, change it from '60000' to '3600000'.
__________________
~ teleshoes ~
 

The Following User Says Thank You to wolke For This Useful Post: