A script file as per this post with the following content did not work

Code:

#!/bin/bash
easystroke send toggle_active

What I want is master gesture to enable/disable Easystroke. Once it is disabled, it should listen for occurrence of the master gesture alone.

Can you guys please provide the correct method for doing this?

TIA.