From 7d6af53bbed889ab04f742e54a19aea039e3554c Mon Sep 17 00:00:00 2001 From: Marley Rae Date: Sun, 4 Feb 2024 17:07:14 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20macOS=20defaults?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- os/macos/input_devices.pref.fish | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/os/macos/input_devices.pref.fish b/os/macos/input_devices.pref.fish index 2802a10..4e08aac 100755 --- a/os/macos/input_devices.pref.fish +++ b/os/macos/input_devices.pref.fish @@ -6,12 +6,11 @@ source "$DOT/script/utils.fish" print_subtitle "Input Devices" +execute "defaults write com.apple.AppleMultitouchTrackpad FirstClickThreshold -int 1" \ + "Set click strength to 'medium'" -execute "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true && \ - defaults write com.apple.AppleMultitouchTrackpad Clicking -int 1 && \ - defaults write -g com.apple.mouse.tapBehavior -int 1 && \ - defaults -currentHost write -g com.apple.mouse.tapBehavior -int 1" \ - "Enable 'Tap to click'" +execute "defaults write -g com.apple.trackpad.forceClick -bool true" \ + "Enable force-click" execute "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true && \ defaults write com.apple.AppleMultitouchTrackpad TrackpadRightClick -int 1 && \ @@ -21,6 +20,27 @@ execute "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Track defaults -currentHost write -g com.apple.trackpad.trackpadCornerClickBehavior -int 0" \ "Map 'click or tap with two fingers' to the secondary click" +execute "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true && \ + defaults write com.apple.AppleMultitouchTrackpad Clicking -int 1 && \ + defaults write -g com.apple.mouse.tapBehavior -int 1 && \ + defaults -currentHost write -g com.apple.mouse.tapBehavior -int 1" \ + "Enable 'Tap to click'" + +execute "defaults write -g com.apple.swipescrolldirection -bool true" \ + "Set scroll direction to 'natural'" + +execute "defaults write com.apple.AppleMultitouchTrackpad TrackpadPinch -bool true" \ + "Enable pinch-to-zoom" + +execute "defaults write com.apple.AppleMultitouchTrackpad TrackpadTwoFingerDoubleTapGesture -int 1" \ + "Enable smart zoom" + +execute "defaults write com.apple.AppleMultitouchTrackpad TrackpadRotate -bool true" \ + "Enable rotating" + +execute "defaults write -g AppleEnableSwipeNavigateWithScrolls -bool true" \ + "Enable swiping between pages" + execute "defaults write -g AppleKeyboardUIMode -int 3" \ "Allow tab-to-navigate in all windows"