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

Asked by guttersnipe

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:
Last query:
Last reply:
Revision history for this message
guttersnipe (fedcba098) said :
#1

bump?

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

Can I please have info?

Revision history for this message
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