-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.osx
177 lines (121 loc) · 6.18 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#!/usr/bin/env bash
CURRENT="`pwd`"
# Ask for admin pass
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
########################################
# Dock
########################################
# Make Hidden App Icons Translucent in Dock
defaults write com.apple.Dock showhidden -bool YES
# Remove Dock Delay
defaults write com.apple.Dock autohide-delay -float 0
# Mission Control Blaster
defaults write com.apple.dock expose-animation-duration -float 0.15
#Set Highlight color to green
# Set dock default tile size
defaults write com.apple.dock tilesize -int 70
# autohide dock
defaults write com.apple.dock autohide -bool true
##########################################################################################
# Finder ~ Hidden Files / File Extensions / Notification Center / Save Panel / Game Center
##########################################################################################
# Show hidden files by default
# Note: show/hide from terminal will switch this behavior
defaults write com.apple.finder AppleShowAllFiles -bool true
# Show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Finder: show status bar
defaults write com.apple.finder ShowStatusBar -bool true
# Display full POSIX path as Finder window title
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# Disable Notification Center and remove the menu bar icon ~SHIT~ It did NOT remove the icon. Check after reboot 8-18
# Replace this with ReactNative better hoss
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null
# Expand Save Panel by Default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Disable Game Center
launchctl unload /System/Library/LaunchAgents/com.apple.gamed.plist 2> /dev/null
# Enable Text Selection for Copying in Quick Look
# note to kill finder at end if fucking with it anymore
defaults write com.apple.finder QLEnableTextSelection -bool TRUE
####################################################################################
# Keyboard ~ Smart Quotes / Smart Dashes / Tab Control in Modals / SHORTCUTS /
####################################################################################
# Disable smart quotes as they’re annoying when typing code
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
# Disable smart dashes as they’re annoying when typing code
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
# Enable full keyboard access for all controls
# (e.g. enable Tab in modal dialogs - 0 = text boxes and lists, 2/3 = all controls)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 0
# Disable press and hold keys for key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Nitro Repeat Rate
defaults write NSGlobalDomain InitialKeyRepeat -int 20
defaults write NSGlobalDomain KeyRepeat -int 1
##########################################
# Scroll
##########################################
# Use scroll gesture with the Ctrl (^) modifier key to zoom
defaults write com.apple.universalaccess closeViewScrollWheelToggle -bool true
defaults write com.apple.universalaccess HIDScrollZoomModifierMask -int 262144
# Disable natural scrolling
defaults write -g com.apple.swipescrolldirection -bool false
##############################################################
# 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
# Screenshot Location
defaults write com.apple.screencapture location
~/Pictures/Screenshots
# Change Screenshots to file type Jaypeg
defaults write com.apple.screencapture type jpg
# Set Mission Control to Mouse Button 4
# this is for my mouse only
#################################################################
# Utils
#################################################################
# Use list view in all finder windows by default
# see about changing pictures to something else
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
# Disable the warning before emptying the Trash
# defaults write com.apple.finder WarnOnEmptyTrash -bool false
# Enable spring loading for all Dock items
# Not sure if this is already on by default or not? I think it is... needs testing
defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
# Disable AutoCorrect
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Disable Dashboard
defaults write com.apple.dashboard mcx-disabled -bool true
# Disable applications re-opening on reboot - note: option persists, but does not work
defaults write -g ApplePersistence -bool no
###################################################################
# System
###################################################################
# Disable local Time Machine backups
hash tmutil &> /dev/null && sudo tmutil disablelocal
# Disable Chrome on System startup
osascript -e 'tell application "System Events" to delete login item "Google Chrome"'
# Disable iTunes Bullshit on startup
osascript -e 'tell application "System Events" to delete login item "iTunesHelper"'
###################################################################
# Terminal
###################################################################
# utf 8 & shit
defaults write com.apple.terminal StringEncodings -array 4
# add custom terminal setup
# Visualize CPU usage in the Activity Monitor Dock icon
# defaults write com.apple.ActivityMonitor IconType -int 5
# Terminal windows take focuse with scroll over
defaults write com.apple.terminal FocusFollowsMouse -string YES
###################################################################
# Chrome
###################################################################
# Disable dumbass touchpad swipe back
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool false
# Use system print dialog
defaults write.google.Chrome DisablePrintPreview -bool true