custom: Add "exec-on-event" config

This config allows disabling the default behavior of re-executing the
script whenever an event that has a command set is triggered.

Fixes #841
This commit is contained in:
Tamir Zahavi-Brunner
2020-09-06 22:47:34 +03:00
parent 44119db436
commit 9e3e4368c7
3 changed files with 15 additions and 2 deletions

View File

@ -22,6 +22,12 @@ Addressed by *custom/<name>*
The path to a script, which determines if the script in *exec* should be executed.
*exec* will be executed if the exit code of *exec-if* equals 0.
*exec-on-event*: ++
typeof: bool ++
default: true ++
If an event command is set (e.g. *on-click* or *on-scroll-up*) then re-execute the script after
executing the event command.
*return-type*: ++
typeof: string ++
See *return-type*