-
Notifications
You must be signed in to change notification settings - Fork 0
/
macos-defaults
executable file
·48 lines (33 loc) · 1.82 KB
/
macos-defaults
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
# vim: ft=sh
# echo "Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)."
# defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
echo "Disable the warning when changing a file extension."
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# echo "Empty Trash securely by default."
# defaults write com.apple.finder EmptyTrashSecurely -bool false
echo "Use current directory as default search scope in Finder."
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# echo "Prefer plain text in Mail."
# defaults write com.apple.mail PreferPlainText -bool TRUE
# echo "Check for software updates daily, not just once per week."
# defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
# echo "Automatically hide and show the Dock."
# defaults write com.apple.dock autohide -bool true
echo "Disable Dock show-hide delay."
defaults write com.apple.dock autohide-delay -int 0
# echo "Disable Screenshot shadow."
# defaults write com.apple.screencapture disable-shadow -bool true
# echo "Store Screenshots in iCloud."
# defaults write com.apple.screencapture location ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Screenshots
echo "Store Screenshots in Home"
defaults write com.apple.screencapture location ~/Screenshots
defaults write com.apple.screencapture name "Screenshot"
echo "Disable Screenshot preview in the corner."
defaults write com.apple.screencapture show-thumbnail -bool FALSE
echo "Disable system UI sound effects like the screen shot sound among others."
defaults write com.apple.systemsound "com.apple.sound.uiaudio.enabled" -int 0
echo "Disable font smoothing"
defaults -currentHost write -g AppleFontSmoothing -int 0
echo "Restart affected apps..."
for app in Finder Mail Dock SystemUIServer; do killall "$app" >/dev/null 2>&1; done
echo "Done."