#!/bin/bash

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

# to unlock change the 'yes' to a 'no' and then run "killall Dock"

# Lock the dock size
defaults write com.apple.Dock size-immutable -bool yes; killall Dock

# Lock the dock position
defaults write com.apple.Dock position-immutable -bool yes; killall Dock

# Lock the dock contents
defaults write com.apple.Dock contents-immutable -bool yes; killall Dock