<div class="gmail_quote">Hi lists,<br><br>I am using <b>siglaunchd</b> tool ( 1) . It is a great tool. I already set up some actions (2) wich improve a lot my openmoko usability (nb: the code is in italic in this email)<br>
<br>I need your help to trigger the following actions :<br>
<br>* Do an action when receiving a sms containing e.G &quot;mypasswd&quot;. For now, I tried<br><i>#on incomming SMS<br>&quot;DISPLAY=:0.0 echo &quot;test&quot; &gt; /home/root/Scripts/message.txt&quot;=org.freesmartphone.GSM.SMS;org.freesmartphone.ogsmd;/org/freesmartphone/GSM/Device;IncomingMessage; </i><br>

<br>--&gt; It does not react (no file created) + it lacks content reading<br><br>* Store each phonenumber for each incomming call (just for testing). For now, I can do<br><i>#on incomming call from 0000000000<br>
&quot;DISPLAY=:0.0 echo $(date +%Y-%m-%d_%H-%M-%S) &gt;
/home/root/Scripts/call.txt&quot;=org.freesmartphone.GSM.Call;org.freesmartphone.ogsmd;/org/freesmartphone/GSM/Device;CallStatus;arg[1]=incoming</i><br><br>--&gt; pbm here : I do not know how to put the phone number in my &quot;echo&quot; command.<br>

<br>* Change profile from &quot;default&quot; to &quot;silent&quot; when the phone is for example face down on a table<br>--&gt; anyway to do this with dbus ?<br><br>Well, I think this capacity of dbus is a huge space to conquer (for me). We are only limited by our imagination :D  Openmoko is great !<br>

Anyway, thanks in advance<br><br>Kimaidou<br><br>(1) <a href="http://wiki.openmoko.org/wiki/Siglaunchd" target="_blank">http://wiki.openmoko.org/wiki/Siglaunchd</a><br><br>(2) Here is my /home/root/.siglaunchd.conf  (Caution, I am running SHR, last testing )<br>

<br><i>#AUX moyen --&gt; dialer<br>&quot;DISPLAY=:0.0 /usr/bin/openmoko-dialer&quot;=org.freesmartphone.Device.Input;org.freesmartphone.oeventsd;/org/freesmartphone/Device/Input;Event;arg[0]=AUX,arg[1]=released,arg[2]&gt;0, arg[2]&lt;2<br>

<br>#AUX long --&gt; terminal<br>&quot;DISPLAY=:0.0 /usr/bin/vala-terminal&quot;=org.freesmartphone.Device.Input;org.freesmartphone.oeventsd;/org/freesmartphone/Device/Input;Event;arg[0]=AUX,arg[1]=released,arg[2]&gt;1<br>

<br>#POWER moyen --&gt; shortom<br>&quot;DISPLAY=:0.0 PYTHONPATH=/usr/lib/python2.5/site-packages/shortom shortom-bin&quot;=org.freesmartphone.Device.Input;org.freesmartphone.oeventsd;/org/freesmartphone/Device/Input;Event;arg[0]=POWER, arg[1]=released, arg[2]&gt;0, arg[2]&lt;2<br>

<br>#POWER long --&gt; shr-settings<br>&quot;DISPLAY=:0.0 /usr/bin/shr-settings&quot;=org.freesmartphone.Device.Input;org.freesmartphone.oeventsd;/org/freesmartphone/Device/Input;Event;arg[0]=POWER, arg[1]=released, arg[2]&gt;1</i><br>

<br><br>
</div><br>