Skip to content

Instantly share code, notes, and snippets.

@sijojlouis
Last active September 26, 2018 15:31
Show Gist options
  • Save sijojlouis/5ec7e38bebd2e51c10cb90b14bc54986 to your computer and use it in GitHub Desktop.
Save sijojlouis/5ec7e38bebd2e51c10cb90b14bc54986 to your computer and use it in GitHub Desktop.
Script for adding "space" separator to Dock in macOS.
#!/bin/bash
# Script for adding "space" separator to Dock in macOS.
# Before running make the file "macos_dock_spacing" executable.
# In the terminal, run
# $ chmod 700 macos_dock_spacing
# then run from the terminal as
# $ ./macos_dock_spacing
echo
echo Adding space to dock... Done!
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}'
echo Refresh dock... Done!
killall Dock
echo
echo -e \*\*'\t' You\'ll find it on the right most side of the dock, '\t\t'\*\*
echo -e \*\*'\t' just before the separator. Move it to where you need '\t\t'\*\*
echo -e \*\*'\t' to space, like you would move an app icon on the dock. '\t'\*\*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment