Skip to content

reverse the scroll direction of your mouse while keeping your trackpad's scroll direction natural / as is

Notifications You must be signed in to change notification settings

narasaka/adaptive-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning

this only works on a mac, and probably a very specific version of it. not sure. works on mine though :)

what is this?

a script that reverses your scroll direction of your mouse if a mouse is connected (wired / bluetooth/ 2.4g / whatever) while keeping your trackpad's scroll direction "correct" / "natural" / whatever.

why make this?

whenever i plug in my laptop (mac os) to a dock, the mouse scroll direction is the opposite of what i want. so i go change it in the settings. but when i unplug from the dock to code in bed (which means no mouse), my trackpad scrolls the wrong way and now i have to go back to the settings and change it back.

aren't there solutions to this?

"why spend 5 minutes doing something manually when you can spend 5 hours automating it?"

why C?

other languages calls these C stuff anyway when trying to control a mac's settings (i think), so why not just do it in C. AND ALSO... WHY NOT LUL

installation

homebrew

brew install narasaka/tap/adaptive-scroll
brew services start adaptive-scroll

Important

running the commands above will prompt you to give it the permissions that the script needs. but if somehow the prompt did not happen, give it permission by going to System Settings -> Privacy & Security -> Accessibility and turning the switch for adaptive-scroll on

from source / manual

  • build it: make build
  • run it: ./adaptive_scroll

Important

you might need to give the script the permissions it needs. see the important note in the homebrew section.

About

reverse the scroll direction of your mouse while keeping your trackpad's scroll direction natural / as is

Resources

Stars

Watchers

Forks

Packages

No packages published