simple if 'string' then exec('command')

Asked by guttersnipe on 2012-08-12

Hi, I have a super simple task that I wast to do with synapse, but I can't find any info about it on the website.

I want to be able to define a `command` to be executed when a synapse 'string' is typed.

For example, I want to be able to make the command
* 'maps' execute `/usr/bin/firefox https://maps.google.com`
* 'email' execute `/usr/bin/thunderbird`
* 'sleep' execute `/my/custom/script.pl`

How can I do this?

Question information

Language:
English Edit question
Status:
Solved
For:
Synapse Edit question
Assignee:
No assignee Edit question
Solved by:
guttersnipe
Solved:
2012-08-27
Last query:
2012-08-27
Last reply:
guttersnipe (fedcba098) said : #1

bump?

Surely there's a document out there that describes this simple hashtable configuration..

Can I please have info?

guttersnipe (fedcba098) said : #2

welp, I managed to figure this out on my own. For anyone else who wants to know how to do this, I created the following article on the wiki: http://synapse.zeitgeist-project.com/wiki/index.php?title=Custom_commands