macos: refresh
This commit is contained in:
59
macos
59
macos
@@ -16,24 +16,11 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
|
||||
# General UI/UX #
|
||||
###############################################################################
|
||||
|
||||
# Set computer name (as done via System Preferences → Sharing)
|
||||
# sudo scutil --set ComputerName "hostname"
|
||||
# sudo scutil --set HostName "hostname"
|
||||
# sudo scutil --set LocalHostName "hostname"
|
||||
|
||||
#sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "0x6D746873"
|
||||
|
||||
# Set standby delay to 24 hours (default is 1 hour)
|
||||
sudo pmset -a standbydelay 86400
|
||||
|
||||
# Disable the sound effects on boot
|
||||
sudo nvram SystemAudioVolume=" "
|
||||
|
||||
# Disable transparency in the menu bar and elsewhere on Yosemite
|
||||
# defaults write com.apple.universalaccess reduceTransparency -bool true
|
||||
# Disable transparency in the menu bar and elsewhere on macOS
|
||||
defaults write com.apple.universalaccess reduceTransparency -bool true
|
||||
|
||||
# Set sidebar icon size to medium
|
||||
defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 2
|
||||
defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 3
|
||||
|
||||
# Disable the over-the-top focus ring animation
|
||||
defaults write NSGlobalDomain NSUseAnimatedFocusRing -bool false
|
||||
@@ -67,16 +54,16 @@ defaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -bool false
|
||||
# Disable Notification Center and remove the menu bar icon
|
||||
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null
|
||||
|
||||
# Disable automatic capitalization as it’s annoying when typing code
|
||||
# Disable automatic capitalization
|
||||
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false
|
||||
|
||||
# Disable smart dashes as they’re annoying when typing code
|
||||
# Disable smart dashes
|
||||
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
|
||||
|
||||
# Disable automatic period substitution as it’s annoying when typing code
|
||||
# Disable automatic period substitution
|
||||
defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false
|
||||
|
||||
# Disable smart quotes as they’re annoying when typing code
|
||||
# Disable smart quote
|
||||
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
|
||||
|
||||
# Disable auto-correct
|
||||
@@ -105,20 +92,15 @@ defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
|
||||
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
|
||||
|
||||
# Set a blazingly fast keyboard repeat rate
|
||||
defaults write NSGlobalDomain KeyRepeat -int 2
|
||||
defaults write NSGlobalDomain InitialKeyRepeat -int 15
|
||||
defaults write NSGlobalDomain KeyRepeat -int 1.2
|
||||
defaults write NSGlobalDomain InitialKeyRepeat -int 12
|
||||
|
||||
# Set language and text formats
|
||||
# Note: if you’re in the US, replace `EUR` with `USD`, `Centimeters` with
|
||||
# `Inches`, `en_GB` with `en_US`, and `true` with `false`.
|
||||
defaults write NSGlobalDomain AppleLanguages -array "en" "ru" "ua"
|
||||
defaults write NSGlobalDomain AppleLocale -string "en_GB@currency=EUR"
|
||||
defaults write NSGlobalDomain AppleMeasurementUnits -string "Centimeters"
|
||||
defaults write NSGlobalDomain AppleMetricUnits -bool true
|
||||
|
||||
# Show language menu in the top right corner of the boot screen
|
||||
sudo defaults write /Library/Preferences/com.apple.loginwindow showInputMenu -bool true
|
||||
|
||||
# Set the timezone; see `sudo systemsetup -listtimezones` for other values
|
||||
sudo systemsetup -settimezone "Europe/Kiev" > /dev/null
|
||||
|
||||
@@ -193,19 +175,12 @@ chflags nohidden ~/Library
|
||||
# Show the /Volumes folder
|
||||
sudo chflags nohidden /Volumes
|
||||
|
||||
# Expand the following File Info panes:
|
||||
# “General”, “Open with”, and “Sharing & Permissions”
|
||||
defaults write com.apple.finder FXInfoPanesExpanded -dict \
|
||||
General -bool true \
|
||||
OpenWith -bool true \
|
||||
Privileges -bool true
|
||||
|
||||
###############################################################################
|
||||
# Dock, Dashboard, and hot corners #
|
||||
###############################################################################
|
||||
|
||||
# Set the icon size of Dock items to 48 pixels
|
||||
defaults write com.apple.dock tilesize -int 48
|
||||
defaults write com.apple.dock tilesize -int 96
|
||||
|
||||
# Change minimize/maximize window effect
|
||||
defaults write com.apple.dock mineffect -string "scale"
|
||||
@@ -417,13 +392,6 @@ defaults write org.m0k.transmission WarningLegal -bool false
|
||||
# Randomize port on launch
|
||||
defaults write org.m0k.transmission RandomPort -bool true
|
||||
|
||||
###############################################################################
|
||||
# Tweetbot.app #
|
||||
###############################################################################
|
||||
|
||||
# Bypass the annoyingly slow t.co URL shortener
|
||||
defaults write com.tapbots.TweetbotMac OpenURLsDirectly -bool true
|
||||
|
||||
###############################################################################
|
||||
# Kill affected applications #
|
||||
###############################################################################
|
||||
@@ -435,20 +403,13 @@ for app in "Activity Monitor" \
|
||||
"Contacts" \
|
||||
"Dock" \
|
||||
"Finder" \
|
||||
"Google Chrome Canary" \
|
||||
"Google Chrome" \
|
||||
"Mail" \
|
||||
"Messages" \
|
||||
"Opera" \
|
||||
"Photos" \
|
||||
"Safari" \
|
||||
"SizeUp" \
|
||||
"Spectacle" \
|
||||
"SystemUIServer" \
|
||||
"Terminal" \
|
||||
"Transmission" \
|
||||
"Tweetbot" \
|
||||
"Twitter" \
|
||||
"iCal"; do
|
||||
killall "${app}" &> /dev/null
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user