-
Notifications
You must be signed in to change notification settings - Fork 0
/
dock.sh
104 lines (78 loc) · 5.12 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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/usr/bin/env bash
python dockutil --remove all
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
## Utilities
python dockutil --add /Applications/App\ Store.app
python dockutil --add /Applications/Utilities/Terminal.app
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
## Media
python dockutil --add /Applications/DaVinci\ Resolve.app
python dockutil --add /Applications/Final\ Cut\ Pro.app
python dockutil --add /Applications/HandBrake.app
python dockutil --add /Applications/iBooks.app
python dockutil --add /Applications/iMovie.app
python dockutil --add /Applications/iTunes.app
python dockutil --add /Applications/Kindle.app
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
## Communication
python dockutil --add /Applications/FaceTime.app
python dockutil --add /Applications/Messages.app
python dockutil --add /Applications/Skype.app
python dockutil --add /Applications/Viber.app
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
## Productivity
python dockutil --add /Applications/Calendar.app
python dockutil --add /Applications/Chronicle.app
python dockutil --add /Applications/Contacts.app
python dockutil --add ~/Library/Printers/EPSON\ XP-400\ Series.app
python dockutil --add /Applications/PCalc.app
python dockutil --add /Applications/Reminders.app
python dockutil --add /Applications/ScreenFlow.app
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
## Browsers
python dockutil --add /Applications/Safari.app
python dockutil --add /Applications/Firefox.app
python dockutil --add /Applications/Google\ Chrome.app
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
## Email
python dockutil --add /Applications/Mail.app
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
## Code
python dockutil --add /Applications/Coda\ 2.app
python dockutil --add /Applications/Xcode.app/Contents/Applications/FileMerge.app
python dockutil --add /Applications/MacDown.app
python dockutil --add /Applications/Paw.app
python dockutil --add /Applications/Sequel\ Pro.app
python dockutil --add /Applications/Sublime\ Text.app
python dockutil --add /Applications/Tower.app
python dockutil --add /Applications/Transmit.app
python dockutil --add /Applications/VirtualBox.app
python dockutil --add /Applications/Xcode.app
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
## Graphics
python dockutil --add /Applications/Affinity\ Designer.app
python dockutil --add /Applications/Affinity\ Photo.app
python dockutil --add /Applications/Photos.app
python dockutil --add /Applications/Pixelmator.app
python dockutil --add /Applications/Preview.app
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
## Games
python dockutil --add /Applications/Battle.net.app
python dockutil --add /Applications/Curse\ Client.app
python dockutil --add /Applications/Full\ Tilt\ Poker.app
python dockutil --add /Applications/Mumble.app
python dockutil --add /Applications/OBS.app
python dockutil --add /Applications/Star\ Trek\ Online.app
python dockutil --add /Applications/Steam.app
python dockutil --add /Applications/Stockfish.app
python dockutil --add /Applications/Ventrilo.app
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
python dockutil --add /Applications --view list --display folder --sort name
python dockutil --add ~ --view list --display folder --sort name
python dockutil --add ~/Downloads --view list --display folder --sort name
# defaults delete com.apple.dock persistent-others
# defaults delete com.apple.dock persistent-apps
# defaults write com.apple.dock persistent-others -array-add "<dict><key>tile-data</key><dict><key>arrangement</key><integer>0</integer><key>displayas</key><integer>1</integer><key>file-data</key><dict><key>_CFURLString</key><string>file:///Applications/</string><key>_CFURLStringType</key><integer>15</integer></dict><key>showas</key><integer>3</integer></dict><key>tile-type</key><string>directory-tile</string></dict>"
# defaults write com.apple.dock persistent-others -array-add "<dict><key>tile-data</key><dict><key>arrangement</key><integer>1</integer><key>displayas</key><integer>1</integer><key>file-data</key><dict><key>_CFURLString</key><string>file:///Users/`whoami`/</string><key>_CFURLStringType</key><integer>15</integer></dict><key>showas</key><integer>3</integer></dict><key>tile-type</key><string>directory-tile</string></dict>"
# defaults write com.apple.dock persistent-others -array-add "<dict><key>tile-data</key><dict><key>arrangement</key><integer>2</integer><key>displayas</key><integer>1</integer><key>file-data</key><dict><key>_CFURLString</key><string>file:///Users/`whoami`/Downloads/</string><key>_CFURLStringType</key><integer>15</integer></dict><key>showas</key><integer>3</integer></dict><key>tile-type</key><string>directory-tile</string></dict>"
# killall Dock