OSDN Git Service

Regular updates
[twpd/master.git] / macos-mouse-acceleration.md
1 ---
2 title: Mouse Acceleration
3 layout: 2017/sheet
4 category: macOS
5 updated: 2018-03-20
6 weight: -1
7 keywords:
8   - "defaults write .GlobalPreferences com.apple.mouse.scaling -1"
9 intro: |
10   Disable mouse acceleration with this one weird trick.
11 ---
12
13 ## Acceleration
14
15
16 ### Disabling
17
18 ```bash
19 defaults write .GlobalPreferences com.apple.mouse.scaling -1
20 ```
21
22 Note: Log out to take effect. If you change *Tracking Speed* under System Preferences, it will undo this fix. Only affects the mouse, not the trackpad.
23
24 ### Re-enabling
25
26 Under *System Preferences* → *Mouse*, change *Tracking Speed*.
27
28 ### Trackpad acceleration
29
30 ```bash
31 defaults write .GlobalPreferences com.apple.trackpad.scaling -1
32 ```
33
34 Works the same way, but only affects trackpads.
35
36 ## References
37
38 - [Disabling mouse acceleration](https://stackoverflow.com/questions/5782884/disabling-mouse-acceleration-in-mac-os-x) _(stackoverflow.com)_