Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Add option for disabling pointer acceleration #1008

Open
yzhou216 opened this issue Jul 20, 2024 · 4 comments
Open

feature: Add option for disabling pointer acceleration #1008

yzhou216 opened this issue Jul 20, 2024 · 4 comments

Comments

@yzhou216
Copy link

Starting from macOS Sonoma, the default pointer acceleration can be disabled by setting

$ defaults write NSGlobalDomain com.apple.mouse.linear -bool "true"

It would be great if nix-darwin can provide an option like

system.defaults.NSGlobalDomain."com.apple.mouse.linear"

It can also be set or disabled in the GUI by "System Settings > Mouse > Advanced > Pointer acceleration".

@yzhou216
Copy link
Author

yzhou216 commented Jul 20, 2024

I just found out about this issue that was opened a while ago: #788

Pointer acceleration indeed can be disabled by setting system.defaults.".GlobalPreferences"."com.apple.mouse.scaling" to -1.0. However, this was an old hack before Sonoma was released, plus the mouse would become so slow which defeats the purpose.

I found this discussions on Apple Support Community from 2021 which explains the problem pretty well.

@Samasaur1
Copy link
Contributor

You should be able to do either

system.defaults.CustomSystemPreferences.NSGlobalDomain."com.apple.mouse.linear" = true;

or

system.defaults.CustomUserPreferences.NSGlobalDomain."com.apple.mouse.linear" = true;

(I can never remember which one is the right one to use)

@yzhou216
Copy link
Author

Problem solved!! Thank you :)
Closing this issue.

@yzhou216
Copy link
Author

yzhou216 commented Sep 29, 2024

#1037 makes this built-in and also completes #788. I'm reopening this.

@yzhou216 yzhou216 reopened this Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants