-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.sh
executable file
·85 lines (59 loc) · 2.59 KB
/
defaults.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash
# -------------------
# Dock Settings
# -------------------
echo "Applying Dock settings..."
# Enable Dock autohide
defaults write com.apple.dock autohide -bool true
# Remove delay for Dock autohide
defaults write com.apple.dock autohide-delay -float 0
# Adjust speed for showing/hiding the Dock
defaults write com.apple.dock autohide-time-modifier -float 0.75
# Magnified icon size in the Dock
defaults write com.apple.dock largesize -int 100
# Enable Dock magnification
defaults write com.apple.dock magnification -bool true
# Set minimize effect to "scale"
defaults write com.apple.dock mineffect -string "scale"
# Minimize windows into the application icon
defaults write com.apple.dock minimize-to-application -bool true
# Disable showing recent applications in the Dock
defaults write com.apple.dock show-recents -bool false
# -------------------
# Finder Settings
# -------------------
echo "Applying Finder settings..."
# Hide external hard drives on desktop
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool false
# Hide internal hard drives on desktop
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool false
# Hide removable media (USB, etc.) on desktop
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool false
# Show Finder sidebar
defaults write com.apple.finder ShowSidebar -bool true
# Show Finder path bar
defaults write com.apple.finder ShowPathbar -bool true
# Show Finder status bar
defaults write com.apple.finder ShowStatusBar -bool true
# Default Finder view: list view
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
# Arrange Finder items by name
defaults write com.apple.finder FK_DefaultIconViewSettings -dict-add arrangeBy -string "name"
# Automatically remove old items from Trash after 30 days
defaults write com.apple.finder FXRemoveOldTrashItems -bool true
# -------------------
# Hot Corners
# -------------------
echo "Configuring hot corners..."
# Bottom-left corner: Start screen saver (requires ⌘)
defaults write com.apple.dock wvous-bl-corner -int 5
defaults write com.apple.dock wvous-bl-modifier -int 1048576
# Bottom-right corner: Quick Note (requires ⌘)
defaults write com.apple.dock wvous-br-corner -int 14
defaults write com.apple.dock wvous-br-modifier -int 1048576
# Top-left corner: Lock screen (requires ⌘)
defaults write com.apple.dock wvous-tl-corner -int 13
defaults write com.apple.dock wvous-tl-modifier -int 1048576
# Top-right corner: Notification Center (requires ⌘)
defaults write com.apple.dock wvous-tr-corner -int 12
defaults write com.apple.dock wvous-tr-modifier -int 1048576