Many Mac users spend a lot of time setting up their computer’s docking panel and making it as convenient as possible. And a random change in the order of the elements by a stranger can openly upset. But you just gave the guest or child the opportunity to work at the computer, suddenly discovering that the dock panel had moved to another place, resized or “lost” some of the necessary applications attached to it.
♥ BY TOPIC: How to make functional F-keys on a Mac really functional.
To prevent the dock panel settings from being changed by other users, it can be locked using the Terminal program. We will tell you about the commands that are needed to block the position, size and contents of the Dock. With their help, you can prevent unwanted changes to the dock. Let’s find out how to do this.
♥ BY TOPIC: How to put your Mac to sleep (lock screen) – 7 ways.
Locking the location of the dock on the screen
Traditionally, the macOS dock is located at the bottom of the desktop, but you can place it at the top, as well as left or right. The choice of location is dictated only by personal preferences and user convenience. And to protect the docking panel from further movement by anyone, open the Terminal program and enter the following command:
defaults write com.apple.Dock position-immutable -bool true; killall Dock
Now press Enter to apply the changes. After that, the dock can no longer be moved to a new location. And even in System Settings → Dock section “Screen layout“Will become inactive.
And to allow permission to change the position of the docking panel again, run the same command in the terminal by changing the “true” option to “false”:
defaults write com.apple.Dock position-immutable -bool false; killall Dock
♥ BY TOPIC: How to change the speed of hiding and displaying the Dock in macOS.
Dock size lock
The size of the dock is just as important as its location. For example, you can make it small so that it takes up minimal screen space or stores the minimum number of applications. And you can increase the size of the labels themselves. In any case, locking the dimensions of the dock is achieved by the following command in the terminal:
defaults write com.apple.Dock size-immutable -bool true; killall Dock
Press Enter to apply the changes. If you try to resize the Dock now, you won’t succeed! Like the layout, the corresponding item in “System settings»For Dock will also be unavailable.
And to allow Dock resizing, run the same terminal command, replacing “true” with “false”:
defaults write com.apple.Dock size-immutable -bool false; killall Dock
♥ BY TOPIC: How to install Windows 10 on Mac using Boot Camp for free: an easy working way.
Lock Dock Content
Another convenient way to lock your dock is with its contents. You can prevent the addition, rearrangement or removal of applications from the Dock with the following terminal command:
defaults write com.apple.Dock contents-immutable -bool true; killall Dock
Press Enter to apply the changes and try adding a new application to the Dock, reordering or removing an item from there. You won’t succeed! In addition, the parameters “Leave in Dock“And”Delete from Dock»Will be unavailable in the context menu of the Dock application.
As with other dock locks, these changes can be undone later. And again, you need to enter the same command, replacing “true” with “false”:
defaults write com.apple.Dock contents-immutable -bool false; killall Dock
If you spend time on personalizing the docking panel and setting it up for convenient work, it will be very disappointing to see the changes made by someone. But with the help of simple terminal commands, you can block the ability to change the Dock in just a few seconds.
Do you consider it necessary and are going to block any one version of the changes or all at once?