View Single Post
jaeezzy's Avatar
Posts: 664 | Thanked: 160 times | Joined on Jul 2008 @ Australia
#1
Hi,
I'm trying to create a simple daemon that switches the speaker on/off by sliding the keyboard while on the call. I'm getting the result but the thing is its switching all the time and continuously monitoring the devices which, of course, gonna shorten battery life. So I'm trying to create a daemon that gets triggered only when the user clicks the "Answer" button to answer a call and stops with the user ending the call. So, just wondering if this is possible.
In the mean time I'm going through the script from shortcutd that triggers the daemon and at the top it has "start on XSESSIONS_STARTING" followed by "stop on stopped hal" -: (ya I'm just learning to write one and most of the things in this script is kinda foreign language to me ). Is it responsible for what I'm looking for and if so what are the other combinations I can choose? Any help/suggestions or links would be greatly appreciated. Thanks
 

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