there is a solution. You can trigger easystroke actions via the bash.

So add an action that ist called toggle_active that disables or enables easystroke.

In bash:

easystroke send ...