macos/defaults/dock.sh

#!/usr/bin/env bash
# macos/defaults/dock.sh — dock tweaks only. Run by bootstrap/macos.sh.

set -euo pipefail

[[ "$OSTYPE" == darwin* ]] || { printf 'dock.sh: macOS only\n' >&2; exit 1; }

# Size and magnification
defaults write com.apple.dock tilesize        -int 48
defaults write com.apple.dock magnification   -bool true
defaults write com.apple.dock largesize       -int 64

# Position and hiding
defaults write com.apple.dock orientation          -string "bottom"
defaults write com.apple.dock autohide             -bool  true
defaults write com.apple.dock autohide-delay       -float 0
defaults write com.apple.dock autohide-time-modifier -float 0.25
defaults write com.apple.dock show-process-indicators -bool true

# Minimize: to icon + scale effect
defaults write com.apple.dock minimize-to-application -bool true
defaults write com.apple.dock mineffect               -string "scale"

# Mission control: no grouping by app, no animation delay
defaults write com.apple.dock expose-group-apps  -bool false
defaults write com.apple.dock expose-animation-duration -float 0.1
defaults write com.apple.dock mru-spaces         -bool false

# Don't show recent apps section
defaults write com.apple.dock show-recents -bool false

# Hot corners: bottom-right = display sleep
defaults write com.apple.dock wvous-br-corner -int 10
defaults write com.apple.dock wvous-br-modifier -int 0

killall Dock