Problem: Controlling a remote Mac desktop using a tool like Barrier or Synergy doesn't allow for trackpad gestures to be sent to the client machine.
Solution: Use Better Touch Tool on host machine to handle the gestures and send a remote command to the client machine.
[1] On the CLIENT machine in BTT setup these Named triggers:
Name: “mission”
Action: “Mission Control”
Name: “right”
Action: “Move Right a Space”
Name: “left”
Action: “Move Left a space”
[2] On client - enable BetterTouchTool Webserver
[3] On the HOST, disable *Swipe Better full-screen apps” and “mission control” from the Trackpad preferences (you are going to control all these gestures using BTT)
[4] In Trackpad items in BTT on host create an action for “3 Finger Swipe up”, another for “3 Finger Swipe Right”, etc
Each one should execute the terminal command to send the curl command which calls the named action on your client.
For example when you 3 finger swipe left, you call this:
curl http://169.254.100.150:12345/trigger_named/?trigger_name=left
I like to do a modifier key for the remote machine (here I’m using ctrl) so the action doesn’t trigger on the host. And then your host actions are also setup as you can see in the screenshot above.
@ThomasKleinhans You can use Barrier or Synergy to use share a keyboard/mouse between both devices and then map gestures with BTT to send a keystroke, Barrier or Synergy should then target the correct device (client or server) with that keystroke. You can also remap some keys/keystrokes with Barrier or Synergy.