Skip to content

Commit

Permalink
mac: more defaults
Browse files Browse the repository at this point in the history
from https://sxyz.blog/macos-setup/

Signed-off-by: clux <sszynrae@gmail.com>
  • Loading branch information
clux committed Dec 8, 2023
1 parent 2b3460f commit ff5e166
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion mac/defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,34 @@ defaults write com.apple.finder FXPreferredGroupBy -string "None"
# Show hidden files
defaults write com.apple.finder "AppleShowAllFiles" -bool "true"

# Avoid creating .DS_Store files on network volumes
# Avoid creating .DS_Store files on network volumes or USB drives
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true

# Show the ~/Library folder
chflags nohidden ~/Library

###############################################################################
# UI #
###############################################################################

# Jump to the spot that's clicked on the scroll bar
defaults write -g AppleScrollerPagingBehavior -bool true

# Manual TODO: unbind ~everything from "Keyboard Shortcuts"

###############################################################################

killall SystemUIServer || true
killall Finder || true
killall Dock || true

###############################################################################
# Power Management (cross ref with 'pmset -g' + 'man pmset') #
###############################################################################

# Disable auto update, auto backup when sleeping
sudo pmset -a powernap 0

# Disable wake by network
sudo pmset -a womp 0

0 comments on commit ff5e166

Please sign in to comment.