This project is daemon which listens to dbus signals and runs applications accordingly.
The signals, application to run and some rules that will be evaluated against incoming dbus signals can be easily changed in the configuration file.
This application is mainly intended to work with the openmoko framework so end users will be able to run application upon events without too much effort, though that isn't a limitation.
For example, one can set the aux button to launch the dialer and the other can set a sound when screen is dimmed with as little as no effort.

(The default config file is set to run the profile-changer when the aux button is pressed for more than a second)

IMPORTANT NOTICE: The project page in projects.openmoko.org is finally up. Hope you all will participate. From now on, that's the place to post bugs/suggestions. Hopefuly, I will start using it completely soon (when the problems are fixed)

I used this configuration to run the openmoko-terminal2 everytime I
held the aux button for 2 seconds or more.

You can actually add as many lines you want to the config and associate as many
applications needed to a single signal with different/same rules(in different lines) .

Another example:
the "Event" signal form the "org.freesmartphone.Device.Input" interface in the framework sends looks like this:
Event ( ssi )
where the arguments are:
the first s = name of input device
the second s = the action took place
i = duration of the event.
We can then tell the dameno to "echo hi" (not very useful) everytime an Event signal of any kind arrives like this:

The same argument can be evaluated as many times you like, use it.
Btw, all the rules are logicaly connected with an AND operation, so they all must match!
If you want an OR logical connection you must add a brand new line differing in what you want it to differ.

Power button - Launch Flashlight

Although the power button is set to be the suspend on fso/shr and when held for more than 10 seconds it will shut down the device, in the area between, I set it to launch the flashlight app, because I don't like messing with stuff when I need my flashlight on!
(you can easily change it to run anything else, so this is also a good example for using the power button)

This project is daemon which listens to dbus signals and runs applications accordingly.
The signals, application to run and some rules that will be evaluated against incoming dbus signals can be easily changed in the configuration file.
This application is mainly intended to work with the openmoko framework so end users will be able to run application upon events without too much effort, though that isn't a limitation.
For example, one can set the aux button to launch the dialer and the other can set a sound when screen is dimmed with as little as no effort.

(The default config file is set to run the profile-changer when the aux button is pressed for more than a second)

IMPORTANT NOTICE: The project page in projects.openmoko.org is finally up. Hope you all will participate. From now on, that's the place to post bugs/suggestions. Hopefuly, I will start using it completely soon (when the problems are fixed)

I used this configuration to run the openmoko-terminal2 everytime I
held the aux button for 2 seconds or more.

You can actually add as many lines you want to the config and associate as many
applications needed to a single signal with different/same rules(in different lines) .

Another example:
the "Event" signal form the "org.freesmartphone.Device.Input" interface in the framework sends looks like this:
Event ( ssi )
where the arguments are:
the first s = name of input device
the second s = the action took place
i = duration of the event.
We can then tell the dameno to "echo hi" (not very useful) everytime an Event signal of any kind arrives like this:

The same argument can be evaluated as many times you like, use it.
Btw, all the rules are logicaly connected with an AND operation, so they all must match!
If you want an OR logical connection you must add a brand new line differing in what you want it to differ.

Power button - Launch Flashlight

Although the power button is set to be the suspend on fso/shr and when held for more than 10 seconds it will shut down the device, in the area between, I set it to launch the flashlight app, because I don't like messing with stuff when I need my flashlight on!
(you can easily change it to run anything else, so this is also a good example for using the power button)