I am trying to simulate a three-finger (four-finger if the three-finger drag is enabled) trackpad swipe gesture using either Hammerspoon or Karabiner-Elements on macOS. The goal is to simulate the fingers down using one of mouse additional buttons (btn4/5) and drag the mouse for completing the action (move between spaces/open mission control).
I have explored both Hammerspoon and Karabiner-Elements, but I'm unsure how to achieve this specific functionality. I would like to know if there is a way to simulate the trackpad gesture of a four-finger swipe using either of these tools ora combination of them. I'm open to alternative suggestions or approaches that can help me achieve it.
Thank you in advance for the help!
Ctrl
and left/right arrow. Trying to map gestures to a button seems overly complex.