-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacos.sh
33 lines (24 loc) · 1.14 KB
/
macos.sh
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
#!/usr/bin/env bash
# Load utilities
source ./utils.sh
header_message "Applying macOS system preferences..."
# General UI/UX
defaults write NSGlobalDomain AppleShowScrollBars -string "Always" # Always show scrollbars
defaults write com.apple.menuextra.battery ShowPercent -string "YES" # Show battery percentage
# Finder
defaults write com.apple.finder ShowPathbar -bool true # Show path bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true # Show status bar in Finder
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv" # Use list view in Finder by default
# Dock
defaults write com.apple.dock autohide -bool true # Auto-hide Dock
defaults write com.apple.dock tilesize -int 36 # Set Dock tile size
# Screenshots
defaults write com.apple.screencapture location -string "${HOME}/Screenshots" # Save screenshots to ~/Screenshots
mkdir -p "${HOME}/Screenshots"
# Safari
defaults write com.apple.Safari ShowFullURLInSmartSearchField -bool true # Show full URL in Safari's address bar
# Restart services to apply changes
killall Finder
killall Dock
killall SystemUIServer
success_message "macOS system preferences applied!"