View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#303
Originally Posted by thedead1440 View Post
Edit: thp, I was thinking like for {presence} if a sh script is placed instead that would have conditions like if online {{green}} is added pre-{presence} and red for busy etc how would the sh script be able to call on the {presence} field?
Yes, right not it does not evaluate the script output recursively. The {{green}} and other color tags are parsed by the renderer, so that's why you can have {{green}} in the script output and still work correctly.

Originally Posted by thedead1440 View Post
Is there an absolute path to point for {presence}? Or could you advice on how does {presence} gets it values from so then the script could point to that path and print values accordingly. Thanks!
It's in the ContextKit property "Presence.State". You can use the ContextKit packages found here: http://harmattan-dev.nokia.com/pool/.../c/contextkit/

Seems like there also is a python-contextkit package - that might be helpful if you are doing Python scripts. For shell scripts, "context-ls" from contextkit-utils might do the trick.
 

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