How to Prevent Dock from Changing the Mac Screen

If you have already configured the Dock on your Mac for yourself, you are probably angry when someone changes something. Maybe someone

another used your computer and accidentally or intentionally moved the Dock to another location or changed its size.

</ p>

Fortunately, this can be avoided by attaching the Dock to the screen using the Terminal. Below we will tell you how to do it. You can lock the position of the Dock, its size and contents.

  • How to fix the position of the Dock
  • How to fix dock size
  • How to block Dock content

How to fix the position of the Dock

You can dock the bottom, left or right. What to choose is a matter of taste. So that no one can change the position of the Dock, open the Terminal program and enter the following command:

defaults write com.apple.Dock position-immutable -bool true; killall dock

Click Enter (Return)to apply the changes. After that, the Dock cannot be moved, this option will turn gray in System Preferences:

To move the Dock again, use this command:

defaults write com.apple.Dock position-immutable -bool false; killall dock

How to fix dock size

Like the position, you can fix the size of the Dock. Some people like the big Dock, others like the small. To fix the size of the Dock, use the following command:

defaults write com.apple.Dock size-immutable -bool true; killall dock

To apply the changes, click Enter (Return). When you try to resize the Dock, you will fail. An option in System Preferences will also turn gray:

To resize the Dock again, use the command:

defaults write com.apple.Dock size-immutable -bool false; killall dock

How to block Dock content

You can also lock the contents of your Dock so that no one can add, remove or move programs in the Dock. There is the following command for this:

defaults write com.apple.Dock contents-immutable -bool true; killall dock

Click Enter (Return), and then try adding the program to the Dock. Does not work? Everything is correct. Also, you cannot delete programs from the Dock and change their order. There are no options in the quick menu either.

You can cancel content blocking with the following command:

defaults write com.apple.Dock contents-immutable -bool false; killall dock

If you like Doc to stay the way you configured it, then these simple commands will make your life a lot easier. We hope the instruction was useful to you!