![]() |
[Anounce] [N9] Volume/Power Button Monitor
Add actions to volume/power/proximitySensor from lockscreen, camera, and other apps.
N9 Button Monitor | mt-toggle for n9bm Highlights:
Features:
Installation: dpkg --force-depends -i n9-button-monitor_*.deb #force-depends installs dependencies, like apt-get -f install https://github.com/teleshoes/n9-button-monitor config file is located at /home/user/.config/n9-button-monitor.conf Default Config {this gets created if there is no file} feel generous? http://api.flattr.com/button/flattr-badge-large.png {or send money via paypal to elliot.wolk@gmail.com} |
Re: [Anounce] [N9] Volume/Power Button Monitor
you need to define your own getActions() function.
heres an example that does the camerra hack {vol+ to take pictures in camera app} and play/pauses music using mplayer Code:
def getActions(): |
Re: [Anounce] [N9] Volume/Power Button Monitor
v0.1
Code:
#!/usr/bin/python |
Re: [Anounce] [N9] Volume/Power Button Monitor
i put the above script in /usr/bin/n9-button-monitor, chmod +x.
i run it on startup with upstart. /etc/init/n9-button-monitor.conf Code:
# Description of the script, mandatory |
Re: [Anounce] [N9] Volume/Power Button Monitor
Thanks for sharing, I have to think on how I can used this for my wife's N9.
|
Re: [Anounce] [N9] Volume/Power Button Monitor
Cool!
Any aims for this? GUI maybe? |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
1) investigating consuming button presses, overriding the default button actions like zooming/volume when an action is defined in the script. {or maybe just overriding it period in all cases, and simulating all the actually useful ones with actions in the script} 2) making the volume keep the phone's ringer volume and speaker volume in lockstep. so many times ive turned down the vol only to have loud music blast out of it. what id do is make it so that every time you press a volume button, ill get the ringer volume and set the phone volume to some variation on that. 3) separating out the action configuration from the script, so you dont need to be a python developer to use it. i imagine a simple rc file a la ~/.n9-button-monitor [volume-up-press] screen_lock = start_music camera_on_top = snap_picture [volume-up-release] always = sync_volume i would need to find out what people would even want to use this for, and add all of them to the rc-file grammar. 4) implement state for macro-ish controls e.g.: make it so pressing and holding volume up, and then pressing volume down, and then releasing volume down and then releasing volume up, turned on the flashlight for 20 seconds "UP DOWN down up" => "flashlight on; sleep 20; flashlight off" {i think im going to rename the vol+/vol- keys INC and DEC to avoid confusion with button-up and button-down for keypresses.} |
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
1) play/pause/skip/prev music players on the lock-screen 2) flashlight on/off on the lock-screen 3) camera take picture {and maybe focus first} 4) camera take delayed picture 5) answer calls, instead of swiping up 1, 3, and 4 are easy and done. the camera doesnt focus first though, so what id REALLY like to do is make it so volUp-PRESS focuses, and volUp-RELEASE snaps. i dont think i have enough control to do this, though. if anybody thinks of anything even remotely awesome, please post. |
Re: [Anounce] [N9] Volume/Power Button Monitor
i got torch/flashlight toggling to work from the lowpowerscreen.
|
Re: [Anounce] [N9] Volume/Power Button Monitor
Quote:
|
All times are GMT. The time now is 02:44. |
vBulletin® Version 3.8.8