Skip to content

Instantly share code, notes, and snippets.

@findmory
Last active February 12, 2026 10:53
Show Gist options
  • Select an option

  • Save findmory/82593b407ef436fe8a39f1bbb6802690 to your computer and use it in GitHub Desktop.

Select an option

Save findmory/82593b407ef436fe8a39f1bbb6802690 to your computer and use it in GitHub Desktop.

Revisions

  1. findmory revised this gist Jul 7, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,7 @@ Action: “Move Left a space”


    [2] On client - enable BetterTouchTool Webserver

    ![Client Webserver Settings](https://www.dropbox.com/s/j08oiywzj8a8qs4/webserver.png?raw=1)


  2. findmory revised this gist Jul 7, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -31,6 +31,7 @@ Action: “Move Left a space”
    [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)
    ![Host Trackpad Settings](https://www.dropbox.com/s/uasy0tcvwijh1mz/host_trackpad.png?raw=1)


    [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.
  3. findmory renamed this gist Jul 7, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. findmory created this gist Jul 7, 2020.
    44 changes: 44 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@

    ## 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](https://folivora.ai/) on host machine to handle the gestures and send a remote command to the client machine.



    ### Steps to setup:
    [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”
    ```
    ![Client Actions](https://www.dropbox.com/s/7ktny7wbf11ui2d/client_actions.png?raw=1)


    [2] On client - enable BetterTouchTool Webserver
    ![Client Webserver Settings](https://www.dropbox.com/s/j08oiywzj8a8qs4/webserver.png?raw=1)


    [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)
    ![Host Trackpad Settings](https://www.dropbox.com/s/uasy0tcvwijh1mz/host_trackpad.png?raw=1)

    [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`

    ![BTT host actions](https://www.dropbox.com/s/t5xgcps8ucfd043/host_settings.png?raw=1)

    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.