Pointer Control
Everything under System Settings › Accessibility › Pointer Control, as Nix options. Each one is named after the control
you'd click, and set under programs.nix-plist-manager.options in home-manager.
Alternate pointer actions
Section titled “Alternate pointer actions”System Settings › Accessibility › Pointer Control › Alternate pointer actions
applications.systemSettings.accessibility.pointerControl.alternatePointerActions = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessalternateMouseButtonsEnabled
For false:
/usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsEnabled -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsEnabled -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess alternateMouseButtonsEnabled 2>/dev/null || true/usr/bin/killall universalaccessd 2>/dev/null || trueFor true:
/usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsEnabled -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsEnabled -bool true' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess alternateMouseButtonsEnabled 2>/dev/null || true/usr/bin/killall universalaccessd 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess alternateMouseButtonsEnabled 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess alternateMouseButtonsEnabled 2>/dev/null || true/usr/bin/killall universalaccessd 2>/dev/null || trueDouble-click speed
Section titled “Double-click speed”System Settings › Accessibility › Pointer Control › Double-click speed
The time between the clicks of a double-click, in seconds.
applications.systemSettings.accessibility.pointerControl.doubleClickSpeed = 0.15; A number from 0.15 to 5 "unset" puts back macOS's default.
Where it's stored and what runs
-
NSGlobalDomaincom.apple.mouse.doubleClickThreshold
For 0.15:
/usr/bin/defaults write NSGlobalDomain com.apple.mouse.doubleClickThreshold -float 0.150000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write NSGlobalDomain com.apple.mouse.doubleClickThreshold -float 0.150000' >&2/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.mouse.doubleClickThreshold 2>/dev/null || trueFor 5.0:
/usr/bin/defaults write NSGlobalDomain com.apple.mouse.doubleClickThreshold -float 5.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write NSGlobalDomain com.apple.mouse.doubleClickThreshold -float 5.000000' >&2/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.mouse.doubleClickThreshold 2>/dev/null || trueFor unset:
/usr/bin/defaults delete NSGlobalDomain com.apple.mouse.doubleClickThreshold 2>/dev/null || true/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.mouse.doubleClickThreshold 2>/dev/null || trueHead Pointer
Section titled “Head Pointer”System Settings › Accessibility › Pointer Control › Head Pointer
applications.systemSettings.accessibility.pointerControl.headPointer = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessheadMouseEnabled
For false:
/usr/bin/defaults write com.apple.universalaccess headMouseEnabled -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMouseEnabled -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseEnabled 2>/dev/null || true/usr/bin/killall universalaccessd 2>/dev/null || trueFor true:
/usr/bin/defaults write com.apple.universalaccess headMouseEnabled -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMouseEnabled -bool true' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseEnabled 2>/dev/null || true/usr/bin/killall universalaccessd 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess headMouseEnabled 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseEnabled 2>/dev/null || true/usr/bin/killall universalaccessd 2>/dev/null || trueIgnore built-in trackpad when mouse or wireless trackpad is present
Section titled “Ignore built-in trackpad when mouse or wireless trackpad is present”System Settings › Accessibility › Pointer Control › Ignore built-in trackpad when mouse or wireless trackpad is present
applications.systemSettings.accessibility.pointerControl.ignoreBuiltInTrackpadWhenMouseOrWirelessTrackpadIsPresent = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.driver.AppleBluetoothMultitouch.trackpadUSBMouseStopsTrackpad -
com.apple.AppleMultitouchTrackpadUSBMouseStopsTrackpad
For false:
/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad -int 0 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad -int 0' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad USBMouseStopsTrackpad -int 0 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad USBMouseStopsTrackpad -int 0' >&2/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad USBMouseStopsTrackpad 2>/dev/null || trueFor true:
/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad -int 1 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad -int 1' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad USBMouseStopsTrackpad -int 1 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad USBMouseStopsTrackpad -int 1' >&2/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad USBMouseStopsTrackpad 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad 2>/dev/null || true/usr/bin/defaults delete com.apple.AppleMultitouchTrackpad USBMouseStopsTrackpad 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad USBMouseStopsTrackpad 2>/dev/null || trueMouse Keys
Section titled “Mouse Keys”System Settings › Accessibility › Pointer Control › Mouse Keys
applications.systemSettings.accessibility.pointerControl.mouseKeys = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessmouseDriver
For false:
/usr/bin/defaults write com.apple.universalaccess mouseDriver -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess mouseDriver -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriver 2>/dev/null || trueFor true:
/usr/bin/defaults write com.apple.universalaccess mouseDriver -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess mouseDriver -bool true' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriver 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess mouseDriver 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriver 2>/dev/null || trueSpring-loading
Section titled “Spring-loading”System Settings › Accessibility › Pointer Control › Spring-loading
applications.systemSettings.accessibility.pointerControl.springLoading = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
NSGlobalDomaincom.apple.springing.enabled
For false:
/usr/bin/defaults write NSGlobalDomain com.apple.springing.enabled -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write NSGlobalDomain com.apple.springing.enabled -bool false' >&2/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.springing.enabled 2>/dev/null || trueFor true:
/usr/bin/defaults write NSGlobalDomain com.apple.springing.enabled -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write NSGlobalDomain com.apple.springing.enabled -bool true' >&2/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.springing.enabled 2>/dev/null || trueFor unset:
/usr/bin/defaults delete NSGlobalDomain com.apple.springing.enabled 2>/dev/null || true/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.springing.enabled 2>/dev/null || trueSpring-loading speed
Section titled “Spring-loading speed”System Settings › Accessibility › Pointer Control › Spring-loading speed
The delay before a folder springs open, in seconds; the slider shows 1 minus the delay.
applications.systemSettings.accessibility.pointerControl.springLoadingSpeed = 0.0; A number from 0 to 2 "unset" puts back macOS's default.
Where it's stored and what runs
-
NSGlobalDomaincom.apple.springing.delay
For 0.0:
/usr/bin/defaults write NSGlobalDomain com.apple.springing.delay -float 0.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write NSGlobalDomain com.apple.springing.delay -float 0.000000' >&2/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.springing.delay 2>/dev/null || trueFor 2.0:
/usr/bin/defaults write NSGlobalDomain com.apple.springing.delay -float 2.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write NSGlobalDomain com.apple.springing.delay -float 2.000000' >&2/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.springing.delay 2>/dev/null || trueFor unset:
/usr/bin/defaults delete NSGlobalDomain com.apple.springing.delay 2>/dev/null || true/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.springing.delay 2>/dev/null || trueAlternate pointer actions (i)
Section titled “Alternate pointer actions (i)”Play sounds
Section titled “Play sounds”System Settings › Accessibility › Pointer Control › Alternate pointer actions (i) › Play sounds
applications.systemSettings.accessibility.pointerControl.alternatePointerActionsOptions.playSounds = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessalternateMouseButtonsPlaySound
For false:
/usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsPlaySound -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsPlaySound -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess alternateMouseButtonsPlaySound 2>/dev/null || trueFor true:
/usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsPlaySound -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsPlaySound -bool true' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess alternateMouseButtonsPlaySound 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess alternateMouseButtonsPlaySound 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess alternateMouseButtonsPlaySound 2>/dev/null || trueShow actions visually
Section titled “Show actions visually”System Settings › Accessibility › Pointer Control › Alternate pointer actions (i) › Show actions visually
applications.systemSettings.accessibility.pointerControl.alternatePointerActionsOptions.showActionsVisually = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessalternateMouseButtonsShowVisualFeedback
For false:
/usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsShowVisualFeedback -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsShowVisualFeedback -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess alternateMouseButtonsShowVisualFeedback 2>/dev/null || trueFor true:
/usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsShowVisualFeedback -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess alternateMouseButtonsShowVisualFeedback -bool true' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess alternateMouseButtonsShowVisualFeedback 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess alternateMouseButtonsShowVisualFeedback 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess alternateMouseButtonsShowVisualFeedback 2>/dev/null || trueHead Pointer (i)
Section titled “Head Pointer (i)”Distance to edge
Section titled “Distance to edge”System Settings › Accessibility › Pointer Control › Head Pointer (i) › Distance to edge
0 to 1; System Settings shows it as a percentage.
applications.systemSettings.accessibility.pointerControl.headPointerOptions.distanceToEdge = 0.0; A number from 0 to 1 "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessheadMouseTolerance
For 0.0:
/usr/bin/defaults write com.apple.universalaccess headMouseTolerance -float 0.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMouseTolerance -float 0.000000' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseTolerance 2>/dev/null || trueFor 1.0:
/usr/bin/defaults write com.apple.universalaccess headMouseTolerance -float 1.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMouseTolerance -float 1.000000' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseTolerance 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess headMouseTolerance 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseTolerance 2>/dev/null || truePointer moves
Section titled “Pointer moves”System Settings › Accessibility › Pointer Control › Head Pointer (i) › Pointer moves
applications.systemSettings.accessibility.pointerControl.headPointerOptions.pointerMoves = "Relative to head movement"; One of: "Relative to head movement""When facing screen edges" "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessheadMouseMode
For Relative to head movement:
/usr/bin/defaults write com.apple.universalaccess headMouseMode -int 2 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMouseMode -int 2' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseMode 2>/dev/null || trueFor When facing screen edges:
/usr/bin/defaults write com.apple.universalaccess headMouseMode -int 1 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMouseMode -int 1' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseMode 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess headMouseMode 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseMode 2>/dev/null || truePointer speed
Section titled “Pointer speed”System Settings › Accessibility › Pointer Control › Head Pointer (i) › Pointer speed
applications.systemSettings.accessibility.pointerControl.headPointerOptions.pointerSpeed = 0.0; A number from 0 to 1 "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessheadMouseSensitivity
For 0.0:
/usr/bin/defaults write com.apple.universalaccess headMouseSensitivity -float 0.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMouseSensitivity -float 0.000000' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseSensitivity 2>/dev/null || trueFor 1.0:
/usr/bin/defaults write com.apple.universalaccess headMouseSensitivity -float 1.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMouseSensitivity -float 1.000000' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseSensitivity 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess headMouseSensitivity 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseSensitivity 2>/dev/null || trueUse a switch or facial expression to pause or resume
Section titled “Use a switch or facial expression to pause or resume”System Settings › Accessibility › Pointer Control › Head Pointer (i) › Use a switch or facial expression to pause or resume
applications.systemSettings.accessibility.pointerControl.headPointerOptions.useASwitchOrFacialExpressionToPauseOrResume = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessheadMousePauseResumeSwitchEnabled
For false:
/usr/bin/defaults write com.apple.universalaccess headMousePauseResumeSwitchEnabled -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMousePauseResumeSwitchEnabled -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMousePauseResumeSwitchEnabled 2>/dev/null || trueFor true:
/usr/bin/defaults write com.apple.universalaccess headMousePauseResumeSwitchEnabled -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMousePauseResumeSwitchEnabled -bool true' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMousePauseResumeSwitchEnabled 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess headMousePauseResumeSwitchEnabled 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess headMousePauseResumeSwitchEnabled 2>/dev/null || trueUse a switch or facial expression to recalibrate
Section titled “Use a switch or facial expression to recalibrate”System Settings › Accessibility › Pointer Control › Head Pointer (i) › Use a switch or facial expression to recalibrate
applications.systemSettings.accessibility.pointerControl.headPointerOptions.useASwitchOrFacialExpressionToRecalibrate = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessheadMouseRecalibrateSwitchEnabled
For false:
/usr/bin/defaults write com.apple.universalaccess headMouseRecalibrateSwitchEnabled -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMouseRecalibrateSwitchEnabled -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseRecalibrateSwitchEnabled 2>/dev/null || trueFor true:
/usr/bin/defaults write com.apple.universalaccess headMouseRecalibrateSwitchEnabled -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess headMouseRecalibrateSwitchEnabled -bool true' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseRecalibrateSwitchEnabled 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess headMouseRecalibrateSwitchEnabled 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess headMouseRecalibrateSwitchEnabled 2>/dev/null || trueMouse Keys (i)
Section titled “Mouse Keys (i)”Ignore built-in trackpad when Mouse Keys is on
Section titled “Ignore built-in trackpad when Mouse Keys is on”System Settings › Accessibility › Pointer Control › Mouse Keys (i) › Ignore built-in trackpad when Mouse Keys is on
applications.systemSettings.accessibility.pointerControl.mouseKeysOptions.ignoreBuiltInTrackpadWhenMouseKeysIsOn = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessmouseDriverIgnoreTrackpad
For false:
/usr/bin/defaults write com.apple.universalaccess mouseDriverIgnoreTrackpad -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess mouseDriverIgnoreTrackpad -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriverIgnoreTrackpad 2>/dev/null || trueFor true:
/usr/bin/defaults write com.apple.universalaccess mouseDriverIgnoreTrackpad -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess mouseDriverIgnoreTrackpad -bool true' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriverIgnoreTrackpad 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess mouseDriverIgnoreTrackpad 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriverIgnoreTrackpad 2>/dev/null || trueInitial delay
Section titled “Initial delay”System Settings › Accessibility › Pointer Control › Mouse Keys (i) › Initial delay
applications.systemSettings.accessibility.pointerControl.mouseKeysOptions.initialDelay = 0.0; A number from 0 to 4 "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessmouseDriverInitialDelay
For 0.0:
/usr/bin/defaults write com.apple.universalaccess mouseDriverInitialDelay -float 0.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess mouseDriverInitialDelay -float 0.000000' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriverInitialDelay 2>/dev/null || trueFor 4.0:
/usr/bin/defaults write com.apple.universalaccess mouseDriverInitialDelay -float 4.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess mouseDriverInitialDelay -float 4.000000' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriverInitialDelay 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess mouseDriverInitialDelay 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriverInitialDelay 2>/dev/null || trueMaximum speed
Section titled “Maximum speed”System Settings › Accessibility › Pointer Control › Mouse Keys (i) › Maximum speed
applications.systemSettings.accessibility.pointerControl.mouseKeysOptions.maximumSpeed = 1; A number from 1 to 40 "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessmouseDriverMaxSpeed
For 1:
/usr/bin/defaults write com.apple.universalaccess mouseDriverMaxSpeed -float 1 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess mouseDriverMaxSpeed -float 1' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriverMaxSpeed 2>/dev/null || trueFor 40:
/usr/bin/defaults write com.apple.universalaccess mouseDriverMaxSpeed -float 40 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess mouseDriverMaxSpeed -float 40' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriverMaxSpeed 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess mouseDriverMaxSpeed 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess mouseDriverMaxSpeed 2>/dev/null || truePress the Option key five times to toggle Mouse Keys
Section titled “Press the Option key five times to toggle Mouse Keys”System Settings › Accessibility › Pointer Control › Mouse Keys (i) › Press the Option key five times to toggle Mouse Keys
applications.systemSettings.accessibility.pointerControl.mouseKeysOptions.pressTheOptionKeyFiveTimesToToggleMouseKeys = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.universalaccessuseMouseKeysShortcutKeys
For false:
/usr/bin/defaults write com.apple.universalaccess useMouseKeysShortcutKeys -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess useMouseKeysShortcutKeys -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess useMouseKeysShortcutKeys 2>/dev/null || trueFor true:
/usr/bin/defaults write com.apple.universalaccess useMouseKeysShortcutKeys -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.universalaccess useMouseKeysShortcutKeys -bool true' >&2/usr/bin/defaults -currentHost delete com.apple.universalaccess useMouseKeysShortcutKeys 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.universalaccess useMouseKeysShortcutKeys 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.universalaccess useMouseKeysShortcutKeys 2>/dev/null || trueMouse Options…
Section titled “Mouse Options…”Scroll speed
Section titled “Scroll speed”System Settings › Accessibility › Pointer Control › Mouse Options… › Scroll speed
applications.systemSettings.accessibility.pointerControl.mouseOptions.scrollSpeed = 0.0; A number from 0 to 1 "unset" puts back macOS's default.
Where it's stored and what runs
-
NSGlobalDomaincom.apple.scrollwheel.scaling
For 0.0:
/usr/bin/defaults write NSGlobalDomain com.apple.scrollwheel.scaling -float 0.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write NSGlobalDomain com.apple.scrollwheel.scaling -float 0.000000' >&2/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.scrollwheel.scaling 2>/dev/null || trueFor 1.0:
/usr/bin/defaults write NSGlobalDomain com.apple.scrollwheel.scaling -float 1.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write NSGlobalDomain com.apple.scrollwheel.scaling -float 1.000000' >&2/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.scrollwheel.scaling 2>/dev/null || trueFor unset:
/usr/bin/defaults delete NSGlobalDomain com.apple.scrollwheel.scaling 2>/dev/null || true/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.scrollwheel.scaling 2>/dev/null || trueTrackpad Options…
Section titled “Trackpad Options…”Dragging style
Section titled “Dragging style”System Settings › Accessibility › Pointer Control › Trackpad Options… › Dragging style
Off is Use trackpad for dragging turned off.
applications.systemSettings.accessibility.pointerControl.trackpadOptions.dragging = "Off"; One of: "Off""Three Finger Drag""With Drag Lock""Without Drag Lock"
Where it's stored and what runs
-
com.apple.driver.AppleBluetoothMultitouch.trackpadDragging -
com.apple.AppleMultitouchTrackpadDragging -
com.apple.driver.AppleBluetoothMultitouch.trackpadTrackpadThreeFingerHorizSwipeGesture -
com.apple.AppleMultitouchTrackpadTrackpadThreeFingerHorizSwipeGesture -
NSGlobalDomaincom.apple.trackpad.threeFingerHorizSwipeGesture(current host) -
com.apple.driver.AppleBluetoothMultitouch.trackpadDragLock -
com.apple.AppleMultitouchTrackpadDragLock -
NSGlobalDomaincom.apple.mouse.tapBehavior(current host) -
com.apple.driver.AppleBluetoothMultitouch.trackpadTrackpadThreeFingerDrag -
com.apple.AppleMultitouchTrackpadTrackpadThreeFingerDrag -
NSGlobalDomaincom.apple.trackpad.threeFingerDragGesture(current host) -
com.apple.driver.AppleBluetoothMultitouch.trackpadTrackpadThreeFingerVertSwipeGesture -
com.apple.AppleMultitouchTrackpadTrackpadThreeFingerVertSwipeGesture -
NSGlobalDomaincom.apple.trackpad.threeFingerVertSwipeGesture(current host)
For Off:
/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool false' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad Dragging -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad Dragging -bool false' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock -bool false' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad DragLock -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad DragLock -bool false' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool false' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool false' >&2/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerDragGesture -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerDragGesture -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad Dragging 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerHorizSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad DragLock 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerVertSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerVertSwipeGesture 2>/dev/null || truetap=$(/usr/bin/defaults -currentHost read NSGlobalDomain com.apple.mouse.tapBehavior 2>/dev/null); if [ "$tap" = 2 ] || [ "$tap" = 3 ]; then /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1; fiFor Three Finger Drag:
/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool false' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad Dragging -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad Dragging -bool false' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture -int 0 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture -int 0' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerHorizSwipeGesture -int 0 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerHorizSwipeGesture -int 0' >&2/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerHorizSwipeGesture -int 0 || echo 'nix-plist-manager: failed: /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerHorizSwipeGesture -int 0' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock -bool false' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad DragLock -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad DragLock -bool false' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool true' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool true' >&2/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerDragGesture -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerDragGesture -bool true' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerVertSwipeGesture -int 0 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerVertSwipeGesture -int 0' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerVertSwipeGesture -int 0 || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerVertSwipeGesture -int 0' >&2/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerVertSwipeGesture -int 0 || echo 'nix-plist-manager: failed: /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerVertSwipeGesture -int 0' >&2/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad Dragging 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerHorizSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad DragLock 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerVertSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerVertSwipeGesture 2>/dev/null || truetap=$(/usr/bin/defaults -currentHost read NSGlobalDomain com.apple.mouse.tapBehavior 2>/dev/null); if [ "$tap" = 2 ] || [ "$tap" = 3 ]; then /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1; fiFor With Drag Lock:
/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool true' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad Dragging -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad Dragging -bool true' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock -bool true' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad DragLock -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad DragLock -bool true' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool false' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool false' >&2/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerDragGesture -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerDragGesture -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad Dragging 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerHorizSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad DragLock 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerVertSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerVertSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 3For Without Drag Lock:
/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool true' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad Dragging -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad Dragging -bool true' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock -bool false' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad DragLock -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad DragLock -bool false' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool false' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool false' >&2/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerDragGesture -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerDragGesture -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad Dragging 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerHorizSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad DragLock 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerVertSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadThreeFingerVertSwipeGesture 2>/dev/null || true/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 2Scroll speed
Section titled “Scroll speed”System Settings › Accessibility › Pointer Control › Trackpad Options… › Scroll speed
applications.systemSettings.accessibility.pointerControl.trackpadOptions.scrollSpeed = 0.0; A number from 0 to 1 "unset" puts back macOS's default.
Where it's stored and what runs
-
NSGlobalDomaincom.apple.trackpad.scrolling
For 0.0:
/usr/bin/defaults write NSGlobalDomain com.apple.trackpad.scrolling -float 0.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write NSGlobalDomain com.apple.trackpad.scrolling -float 0.000000' >&2/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.trackpad.scrolling 2>/dev/null || trueFor 1.0:
/usr/bin/defaults write NSGlobalDomain com.apple.trackpad.scrolling -float 1.000000 || echo 'nix-plist-manager: failed: /usr/bin/defaults write NSGlobalDomain com.apple.trackpad.scrolling -float 1.000000' >&2/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.trackpad.scrolling 2>/dev/null || trueFor unset:
/usr/bin/defaults delete NSGlobalDomain com.apple.trackpad.scrolling 2>/dev/null || true/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.trackpad.scrolling 2>/dev/null || trueUse inertia when scrolling
Section titled “Use inertia when scrolling”System Settings › Accessibility › Pointer Control › Trackpad Options… › Use inertia when scrolling
applications.systemSettings.accessibility.pointerControl.trackpadOptions.useInertiaWhenScrolling = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
com.apple.driver.AppleBluetoothMultitouch.trackpadTrackpadMomentumScroll -
com.apple.AppleMultitouchTrackpadTrackpadMomentumScroll -
NSGlobalDomaincom.apple.trackpad.momentumScroll(current host)
For false:
/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadMomentumScroll -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadMomentumScroll -bool false' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadMomentumScroll -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadMomentumScroll -bool false' >&2/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.momentumScroll -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.momentumScroll -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadMomentumScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadMomentumScroll 2>/dev/null || trueFor true:
/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadMomentumScroll -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadMomentumScroll -bool true' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadMomentumScroll -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadMomentumScroll -bool true' >&2/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.momentumScroll -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.momentumScroll -bool true' >&2/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadMomentumScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadMomentumScroll 2>/dev/null || trueFor unset:
/usr/bin/defaults delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadMomentumScroll 2>/dev/null || true/usr/bin/defaults delete com.apple.AppleMultitouchTrackpad TrackpadMomentumScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.trackpad.momentumScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadMomentumScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadMomentumScroll 2>/dev/null || trueUse trackpad for scrolling
Section titled “Use trackpad for scrolling”System Settings › Accessibility › Pointer Control › Trackpad Options… › Use trackpad for scrolling
applications.systemSettings.accessibility.pointerControl.trackpadOptions.useTrackpadForScrolling = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
NSGlobalDomaincom.apple.trackpad.scrollBehavior(current host) -
com.apple.driver.AppleBluetoothMultitouch.trackpadTrackpadHorizScroll -
com.apple.driver.AppleBluetoothMultitouch.trackpadTrackpadScroll -
com.apple.AppleMultitouchTrackpadTrackpadHorizScroll -
com.apple.AppleMultitouchTrackpadTrackpadScroll
For false:
/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.scrollBehavior -int 0 || echo 'nix-plist-manager: failed: /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.scrollBehavior -int 0' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadHorizScroll -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadHorizScroll -bool false' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadScroll -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadScroll -bool false' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadHorizScroll -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadHorizScroll -bool false' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadScroll -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadScroll -bool false' >&2/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadHorizScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadHorizScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadScroll 2>/dev/null || trueFor true:
/usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.scrollBehavior -int 2 || echo 'nix-plist-manager: failed: /usr/bin/defaults -currentHost write NSGlobalDomain com.apple.trackpad.scrollBehavior -int 2' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadHorizScroll -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadHorizScroll -bool true' >&2/usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadScroll -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadScroll -bool true' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadHorizScroll -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadHorizScroll -bool true' >&2/usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadScroll -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.AppleMultitouchTrackpad TrackpadScroll -bool true' >&2/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadHorizScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadHorizScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadScroll 2>/dev/null || trueFor unset:
/usr/bin/defaults -currentHost delete NSGlobalDomain com.apple.trackpad.scrollBehavior 2>/dev/null || true/usr/bin/defaults delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadHorizScroll 2>/dev/null || true/usr/bin/defaults delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadScroll 2>/dev/null || true/usr/bin/defaults delete com.apple.AppleMultitouchTrackpad TrackpadHorizScroll 2>/dev/null || true/usr/bin/defaults delete com.apple.AppleMultitouchTrackpad TrackpadScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadHorizScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadHorizScroll 2>/dev/null || true/usr/bin/defaults -currentHost delete com.apple.AppleMultitouchTrackpad TrackpadScroll 2>/dev/null || true