How to add a spacer to your macOS dock

defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' && killall Dock

This adds an empty icon to your macOS dock and restarts Dock.app. It looks like this afterwards:

Leave a Reply

Your email address will not be published. Required fields are marked *