View Single Post
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#1465
Originally Posted by P@t View Post
- Why is it not possible to have 2 different 'custom action' for a set of condition? I would like to avoid a script which is a bit more pain to maintain.
edit: or maybe it is possible to put two lines of command in a 'custom action', forgot to test that...
You can have several commands if you launch it in shell. For example something like this:

Code:
sh -c 'echo first command; echo second command'
Another possibility is to easily copy a condition from an existing rule (in my case, I would need to copy cells position which is difficult manually)
I know that is a bit of a pain and I have thought about it also myself. But it's pretty easy to just copy the rule with the cell ids (long press on the rule in main view), and modify the rest to match what you want.

I know you mention that you will not develop a condition based on bluetooth. But I wonder if the difficulty is in having paired devices connected. So at the end, would it be easier to get a condition on the fact that bluetooth is only enabled?
A condition whether Bluetooth is enabled would probably be pretty easy. But since changing Bluetooth is already an action I'm wary to add such a condition as it could result in a vicious loop if the rules had conditions and actions for changing Bluetooth.

So I wouldn't want to add that unless there's a very good reason.
__________________
My N9/N950 projects:

Last edited by ajalkane; 2013-09-04 at 20:35. Reason: Fixed quotes
 

The Following 2 Users Say Thank You to ajalkane For This Useful Post: