Skip to content

Commit 9ba996a

Browse files
committed
set personal macos defaults
1 parent 68daaf2 commit 9ba996a

File tree

1 file changed

+0
-68
lines changed

1 file changed

+0
-68
lines changed

macos/set-defaults.sh

-68
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
2121
# General UI/UX #
2222
###############################################################################
2323

24-
# Set highlight color to green
25-
defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600"
26-
2724
# Expand save panel by default
2825
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
2926
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
@@ -45,10 +42,6 @@ defaults write com.apple.LaunchServices LSQuarantine -bool false
4542
# Try e.g. `cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt`
4643
defaults write NSGlobalDomain NSTextShowsControlCharacters -bool true
4744

48-
# Reveal IP address, hostname, OS version, etc. when clicking the clock
49-
# in the login window
50-
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
51-
5245
# Disable smart quotes as they’re annoying when typing code
5346
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
5447

@@ -78,40 +71,17 @@ defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool
7871
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
7972
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
8073

81-
# Trackpad: map bottom right corner to right-click
82-
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2
83-
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true
84-
defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1
85-
defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true
86-
8774
# Enable full keyboard access for all controls
8875
# (e.g. enable Tab in modal dialogs)
8976
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
9077

91-
# Disable press-and-hold for keys in favor of key repeat
92-
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
93-
94-
# Set a blazingly fast keyboard repeat rate
95-
defaults write NSGlobalDomain KeyRepeat -int 2
96-
defaults write NSGlobalDomain InitialKeyRepeat -int 13
97-
98-
# Disable auto-correct
99-
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
100-
10178
###############################################################################
10279
# Screen #
10380
###############################################################################
10481

105-
# Require password immediately after sleep or screen saver begins
106-
defaults write com.apple.screensaver askForPassword -int 1
107-
defaults write com.apple.screensaver askForPasswordDelay -int 0
108-
10982
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
11083
defaults write com.apple.screencapture type -string "png"
11184

112-
# Save screenshots to the downlaods.
113-
defaults write com.apple.screencapture location "$HOME/Downloads/"
114-
11585
###############################################################################
11686
# Finder #
11787
###############################################################################
@@ -124,27 +94,15 @@ defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/Desk
12494
# Finder: show all filename extensions
12595
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
12696

127-
# Finder: show all files
128-
defaults write com.apple.finder AppleShowAllFiles -bool true
129-
130-
# Disable the warning when changing a file extension
131-
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
132-
13397
# When performing a search, search the current folder by default
13498
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
13599

136-
# Disable the warning before emptying the Trash
137-
defaults write com.apple.finder WarnOnEmptyTrash -bool false
138-
139100
# Use AirDrop over every interface. srsly this should be a default.
140101
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
141102

142103
# Always open everything in Finder's list view. This is important.
143104
defaults write com.apple.Finder FXPreferredViewStyle Nlsv
144105

145-
# Show the ~/Library folder.
146-
chflags nohidden ~/Library
147-
148106
# Finder: show status bar
149107
defaults write com.apple.finder ShowStatusBar -bool true
150108

@@ -163,13 +121,6 @@ defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
163121
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
164122
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
165123

166-
# Set the Finder prefs for showing a few different volumes on the Desktop.
167-
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
168-
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
169-
170-
# Show the /Volumes folder
171-
sudo chflags nohidden /Volumes
172-
173124
###############################################################################
174125
# Safari & WebKit #
175126
###############################################################################
@@ -256,22 +207,3 @@ defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
256207

257208
# Prevent Photos from opening automatically when devices are plugged in
258209
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
259-
260-
###############################################################################
261-
# Transmission.app #
262-
###############################################################################
263-
264-
# Trash original torrent files
265-
defaults write org.m0k.transmission DeleteOriginalTorrent -bool true
266-
267-
# Hide the donate message
268-
defaults write org.m0k.transmission WarningDonate -bool false
269-
# Hide the legal disclaimer
270-
defaults write org.m0k.transmission WarningLegal -bool false
271-
272-
# IP block list.
273-
# Source: https://giuliomac.wordpress.com/2014/02/19/best-blocklist-for-transmission/
274-
defaults write org.m0k.transmission BlocklistNew -bool true
275-
defaults write org.m0k.transmission BlocklistURL -string "http://john.bitsurge.net/public/biglist.p2p.gz"
276-
defaults write org.m0k.transmission BlocklistAutoUpdate -bool true
277-

0 commit comments

Comments
 (0)