Skip to content

Instantly share code, notes, and snippets.

@ash2703
Last active November 22, 2025 15:54
Show Gist options
  • Select an option

  • Save ash2703/1bbd056b02fd5ba9e6a49795a7693071 to your computer and use it in GitHub Desktop.

Select an option

Save ash2703/1bbd056b02fd5ba9e6a49795a7693071 to your computer and use it in GitHub Desktop.
Enable external mouse gestures on MAC

Gestures on external mouse

Install xGestures

Install xGestures

Install scrollreverser

Life Will Be Easier

Save below codes as separate *.scpt files in a folder

#left.scpt
tell application "System Events" to key code 124 using control down
#right.scpt
tell application "System Events" to key code 123 using control down
#up.scpt
tell application "System Events" to key code 126 using control down
#down.scpt
tell application "System Events" to key code 125 using control down

For more event codes: https://apple.stackexchange.com/questions/36943/how-do-i-automate-a-key-press-in-applescript

@ash2703
Copy link
Author

ash2703 commented Dec 9, 2021

Sync trackpad and mouse behaviour else it's a havoc!!
reverser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment