-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom
More file actions
executable file
·39 lines (30 loc) · 1.05 KB
/
custom
File metadata and controls
executable file
·39 lines (30 loc) · 1.05 KB
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
34
35
36
37
38
#!/usr/bin/env bash
# Custom macOS configuration script
# This script is idempotent and can be run multiple times safely
set -euo pipefail
echo "🍎 Configuring macOS settings..."
# Keyboard repeat rate
echo "⌨️ Setting keyboard repeat rate..."
current_initial=$(defaults read -g InitialKeyRepeat 2>/dev/null || echo "15")
current_repeat=$(defaults read -g KeyRepeat 2>/dev/null || echo "2")
if [ "$current_initial" != "10" ]; then
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
echo "✓ Set InitialKeyRepeat to 10"
else
echo "✓ InitialKeyRepeat already set to 10"
fi
if [ "$current_repeat" != "1" ]; then
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
echo "✓ Set KeyRepeat to 1"
else
echo "✓ KeyRepeat already set to 1"
fi
# Note: Add other custom macOS settings below
# Examples:
# - Dock settings
# - Finder preferences
# - Trackpad settings
# - Mission Control settings
# etc.
echo "✨ macOS configuration complete!"
echo "💡 Note: Some settings may require a logout/restart to take effect"