Ghub script example. But it's also the most flexible option.

Ghub script example. Lua script to use mouse gestures in macOS using g-hub.