forked from alrra/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdock.sh
executable file
·50 lines (33 loc) · 1.81 KB
/
dock.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
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n Dock\n\n"
execute "defaults write com.apple.dock autohide -bool true" \
"Automatically hide/show the Dock"
execute "defaults write com.apple.dock autohide-delay -float 0" \
"Disable the hide Dock delay"
execute "defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true" \
"Enable spring loading for all Dock items"
execute "defaults write com.apple.dock expose-animation-duration -float 0.1" \
"Make all Mission Control related animations faster."
execute "defaults write com.apple.dock expose-group-by-app -bool false" \
"Do not group windows by application in Mission Control"
execute "defaults write com.apple.dock launchanim -bool false" \
"Disable the opening of an application from the Dock animations."
execute "defaults write com.apple.dock mineffect -string 'scale'" \
"Change minimize/maximize window effect"
execute "defaults write com.apple.dock minimize-to-application -bool true" \
"Reduce clutter by minimizing windows into their application icons"
execute "defaults write com.apple.dock mru-spaces -bool false" \
"Do not automatically rearrange spaces based on most recent use"
execute "defaults write com.apple.dock persistent-apps -array && \
defaults write com.apple.dock persistent-others -array " \
"Wipe all app icons"
execute "defaults write com.apple.dock show-process-indicators -bool true" \
"Show indicator lights for open applications"
execute "defaults write com.apple.dock showhidden -bool true" \
"Make icons of hidden applications translucent"
execute "defaults write com.apple.dock tilesize -int 60" \
"Set icon size"
killall "Dock" &> /dev/null