-
Notifications
You must be signed in to change notification settings - Fork 0
/
osx
129 lines (93 loc) · 6.57 KB
/
osx
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
###############################################################################
# Apps #
###############################################################################
# BetterTouchTool
defaults write com.hegenberg.BetterTouchTool borderWidth -int 0
defaults write com.hegenberg.BetterTouchTool previewWindowAnimationDuration -int 0
defaults write com.hegenberg.BetterTouchTool roundedCorners -int 0
###############################################################################
# Menubar #
###############################################################################
# Show battery percentage
defaults write com.apple.menuextra.battery ShowPercent -string "YES"
# Show sound
defaults write com.apple.systemuiserver menuExtras -array-add "/System/Library/CoreServices/Menu Extras/Volume.menu"
###############################################################################
# Dock #
###############################################################################
# Make the dock as small as possible
defaults write com.apple.dock tilesize -int 16
# Auto-hide the dock
defaults write com.apple.dock autohide -bool true
# Remove all the apps from the dock
defaults write com.apple.dock persistent-apps -array ""
###############################################################################
# Finder #
###############################################################################
# Open home folder for new finder windows
defaults write com.apple.finder NewWindowTargetPath -string "file:///Users/kirbykohlmorgen/"
# Remove recent tags
defaults write com.apple.finder ShowRecentTags -int 0
# Always display files and folders in finder as a list
defaults write com.apple.finder FXPreferredViewStyle Nlsv
# finder: show hidden files by default
defaults write com.apple.finder AppleShowAllFiles -bool true
# finder: set window title to full POSIX file path of current folder
defaults write com.apple.finder _FXShowPosixPathInTitle -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
# Automatically open a new finder window when a volume is mounted
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
# Enable snap-to-grid for icons on the desktop and in other icon views
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
# Increase grid spacing for icons on the desktop and in other icon views
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:gridSpacing 70" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:gridSpacing 70" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:gridSpacing 70" ~/Library/Preferences/com.apple.finder.plist
# Increase the size of icons on the desktop and in other icon views
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:iconSize 40" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:iconSize 40" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:iconSize 40" ~/Library/Preferences/com.apple.finder.plist
# Disable the warning before emptying the Trash
defaults write com.apple.finder WarnOnEmptyTrash -bool false
###############################################################################
# Keyboard #
###############################################################################
# Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 0
# Disable spotlight search
defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 64 "{ enabled = 0; value = { parameters = ( 65535, 49, 1048576 ); type = 'standard'; }; }"
# Disable Finder search window
defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 65 "{ enabled = 0; value = { parameters = ( 65535, 49, 1572864 ); type = 'standard'; }; }"
# Enable Ctrl-Space previous input. This is because I use Dvorak and makes it
# easy to switch to Qwerty for other people.
defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 60 "{ enabled = 1; value = { parameters = ( 32, 49, 262144 ); type = 'standard'; }; }"
# Prevent iTunes from launching when pressing the media keys on the keyboard
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
###############################################################################
# Messages #
###############################################################################
# Turns off sounds when sending and receiving messages
defaults write com.apple.messageshelper.AlertsController PlaySoundsKey -bool false
###############################################################################
# Preview
###############################################################################
# Set single page as the default
defaults write com.apple.Preview kPVPDFDefaultPageViewModeOption -int 1
###############################################################################
# Global
###############################################################################
# Turns off interface sound effects
defaults write com.apple.systemsound com.apple.sound.uiaudio.enabled -int 0
# Turns off sound changing feedback
defaults write -g com.apple.sound.beep.feedback -bool false
# Prevents Photos from opening when iPhone is plugged in
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES