Repository navigation
Expand file tree
/
Copy pathmacos-settings.sh
More file actions
executable file
·89 lines (66 loc) · 3.8 KB
/
Copy pathmacos-settings.sh
File metadata and controls
executable file
·89 lines (66 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env bash
# Credit to mathiasbynens who I took some things from
# https://github.com/mathiasbynens/dotfiles/blob/main/.macos
set -euo pipefail
# Put downloads on the Desktop instead of the Downloads folder
sudo rmdir Downloads
ln -s Desktop Downloads
# Desktop & Dock
# Dock > Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true
# Dock > Show suggested and recent apps in Dock
defaults write com.apple.dock show-recents -bool false
# Mission Control > Automatically rearrange spaces based on most recent use
defaults write com.apple.dock mru-spaces -bool false
# Desktop & Stage Manager > Click wallpaper to reveal desktop
defaults write com.apple.WindowManager EnableStandardClickToShowDesktop -bool false
# Wipe all (default) app icons from the Dock
defaults write com.apple.dock persistent-apps -array
# Wipe all other persistent things from the Dock
defaults write com.apple.dock persistent-other -array
killall Dock
# Desktop (actual)
# Sort By > Snap to Grid
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
# View > [hold Option] > Sort by... > Date Modified
/usr/libexec/PlistBuddy -c "Set :StandardViewOptions:ColumnViewOptions:ArrangeBy modd" ~/Library/Preferences/com.apple.finder.plist
# New Finder windows show $HOME
defaults write com.apple.finder NewWindowTarget PfHm
# Finder > Advanced > Show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Finder > Advanced > Show warning before changing an extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Finder > Use column view by default
defaults write com.apple.finder FXPreferredViewStyle -string "clmv"
killall Finder
# Trackpad > Point & Click > Tap to click
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# Accessibility > Vision > Display > Pointer > Shake mouse pointer to locate
defaults write NSGlobalDomain CGDisableCursorLocationMagnification -bool false
# Sound > Sound Effects > Play feedback when volume is changed
defaults write NSGlobalDomain com.apple.sound.beep.feedback -int 1
# Keyboard > Key repeat rate > Fast
defaults write NSGlobalDomain InitialKeyRepeat -float 15
# Keyboard > Delay until repeat > Short
defaults write NSGlobalDomain KeyRepeat -float 2
# Keyboard > Text Input > Input Sources > Edit > Automatically switch to a document's input source
defaults write com.apple.HIToolbox AppleGlobalTextInputProperties -dict-add "TextInputGlobalPropertyPerContextInput" -bool true
# Keyboard > Text Input > Input Sources > Edit > Correct spelling automatically
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
defaults write NSGlobalDomain WebAutomaticSpellingCorrectionEnabled -bool false
# Keyboard > Text Input > Input Sources > Edit > Capitalize words automatically
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false
# Keyboard > Text Input > Input Sources > Edit > Add period with double space
defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false
# Accessibility > Motor > Pointer Control > Trackpad Options... > Use trackpad for dragging
defaults write com.apple.AppleMultitouchTrackpad Dragging -bool true
defaults write -g ApplePressAndHoldEnabled -bool false
# https://apple.stackexchange.com/questions/465132/how-do-i-turn-off-macos-sonomas-emoji-guessing
sudo defaults write /Library/Preferences/FeatureFlags/Domain/UIKit.plist emoji_enhancements -dict-add Enabled -bool false
# Disable popup near cursor showing Input Source (A, あ), etc.
defaults write kCFPreferencesAnyApplication TSMLanguageIndicatorEnabled 0
osascript <<EOF
tell application "System Events"
make login item at end with properties { path: "/Applications/Amethyst.app" }
end tell
EOF