Libinput-gestures is a utility which reads gestures from your touchpad and maps them to functions you define in a configuration file. See here