-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathset-defaults.txt
82 lines (57 loc) · 3.57 KB
/
set-defaults.txt
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
# For now, this is just a collection of MacOS settings that are configurable via command line that I find useful.
# To convert this into a shell script for automation, see:
# https://github.com/nateirwin/dotfiles/blob/master/macos/set-defaults.sh
# Other good references:
# https://ss64.com/osx/syntax-defaults.html
# https://www.learningosx.com/101-ways-to-tweak-os-x-using-terminal/
# To read default setting before writing new, use:
# defaults read
###############################################################################
# General UI/UX #
###############################################################################
# Always show scrollbars.
defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
# Disable opening and closing window animations.
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# Expand save panel by default.
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Expand print panel by default.
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
# Automatically quit printer app once the print jobs complete.
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
# Disable the “Are you sure you want to open this application?” dialog.
defaults write com.apple.LaunchServices LSQuarantine -bool false
###############################################################################
# Trackpad, mouse, keyboard, Bluetooth accessories, and input #
###############################################################################
# Disable auto-correct.
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Set Keyboard > Key Repeat to 2 (30 ms) ("Fast")
defaults write NSGlobalDomain KeyRepeat -int 2
# Set Keyboard > Delay Until Repeat to 25 (375 ms) (one click long of "Short")
defaults write NSGlobalDomain InitialKeyRepeat -int 25
###############################################################################
# Screen #
###############################################################################
# Require password immediately after sleep or screen saver begins.
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0
# Save screenshots to the downloads folder.
defaults write com.apple.screencapture location -string "$HOME/Downloads"
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF).
defaults write com.apple.screencapture type -string “png”
###############################################################################
# Finder #
###############################################################################
# Finder: disable window animations and Get Info animations.
defaults write com.apple.finder DisableAllAnimations -bool true
# Finder: Show all filename extensions.
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# When performing a search, search the current folder by default.
defaults write com.apple.finder FXDefaultSearchScope -string “SCcf"
# Disable the warning when changing a file extension.
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Make Dock icons of hidden applications translucent.
defaults write com.apple.dock showhidden -bool true
# Show indicator lights for open applications in the Dock.
defaults write com.apple.dock show-process-indicators -bool true