todd-dsm / mac-ops

QnD Automation to build a MacBook Pro for DevOps
MIT License
11 stars 7 forks source link

dump this stuff #97

Open todd-dsm opened 2 years ago

todd-dsm commented 2 years ago

These parameters are no longer valid; at least some of them anyway. Research the rest:

defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/" #verify before deletion
defaults read com.apple.menuextra.battery ShowPercent
defaults write com.apple.menuextra.battery ShowPercent -string 'YES'

### The Print Dialog Box - haven't printed anything for years
printInfo "Expand Print panel by default..."
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true

### Set default Tile Size to 42px - REVIEW
defaults write com.apple.dock tilesize 42

### Set default Tile Size to 42px - REVIEW
defaults write com.apple.dock tilesize 42

### Auto-Hide the Dock - REVIEW
printInfo "Auto-hide The Dock..."
defaults write com.apple.dock autohide -bool true

### Optionally: adjust timing with these settings  - REVIEW
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0

### Disable Guest User at the Login Screen - OFF BY DEFAULT
printInfo "Disable Guest User at the Login Screen..."
sudo defaults write /Library/Preferences/com.apple.loginwindow GuestEnabled -bool NO
sudo defaults read /Library/Preferences/com.apple.loginwindow GuestEnabled

### Apple File Protocol - DISABLED IN BIG SUR
printInfo "Disable AFP Guest Access..."
defaults write com.apple.AppleFileServer.plist AllowGuestAccess -int 0

### Default Window Size - RESEARCH
printInfo "New Windows will open at H:45 x W:100..."
defaults write com.apple.TextEdit WidthInChars -int 100
defaults write com.apple.TextEdit HeightInChars -int 45

### Perform some font maintenance - REVIEW: this no longer works as expected after os update
printInfo "Refreshing the Fonts directory..."
atsutil server -ping
sudo atsutil databases -remove
atsutil server -shutdown
atsutil server -ping