@mike-0
Have you considered this? https://github.com/gfischershaw/MMM-Touch
It can define your touch gesture then assign jobs even shell scripts execution.