macOS Mojave – Reset and Lock Size of Dock

I like keeping the macOS Dock at the default size but sometimes I fat-finger with the trackpad and accidentally resize. It’s a shame there is no obvious way to change it back to the default. Fortunately someone figured out the default value of the dock size; you can restore the size with the following command:

You can also disable resizing entirely with: