Best and easiest way to get touchpad gestures like Mac

Thanks I will try that one as well. Seems to do exactly the same, also based on libinput and uses xdotool. But a bit further developed with start/stop/autostart options. More documentation as well.