#!/bin/bash

## FixDocks
## v1.0 10/22/18


# Reset the dock, starting from scratch with only Finder and Trash
dockutil --remove all

# Add Chrome shortcut to dock
dockutil --add /Applications/Google\ Chrome.app --position 2 --allhomes

# Add NWEA Secure Testing app
dockutil --add /Applications/NWEA\ Secure\ Testing\ Browser.app --position 3 --allhomes

# Lock the dock size
# to unlock change the 'yes' to a 'no' and then run "killall Dock"
defaults write com.apple.Dock size-immutable -bool yes; killall Dock

# Lock the dock position
# to unlock change the 'yes' to a 'no' and then run "killall Dock"
defaults write com.apple.Dock position-immutable -bool yes; killall Dock

# Lock the dock contents
# to unlock change the 'yes' to a 'no' and then run "killall Dock"
defaults write com.apple.Dock contents-immutable -bool yes; killall Dock

# Apply the dock settings
#killall Dock