add triggers and actions to widgets

Would it be possible to execute multiple triggers on a single widget on the touch bar? so far we can only do one trigger on one widget, with multiple actions. What I'm proposing is for example have a button which you can press, double press, swipe left/right, etc, all of them triggering different actions. Or if it's possible in AppleScript, could someone advise how?