Skip to content

Instantly share code, notes, and snippets.

@dolmios
Created October 8, 2023 19:27
Show Gist options
  • Save dolmios/c4571e33dbe2499277d295dd89b423a7 to your computer and use it in GitHub Desktop.
Save dolmios/c4571e33dbe2499277d295dd89b423a7 to your computer and use it in GitHub Desktop.
Adding a Space to Your Dock on MacOS

Adding a Space to Your Dock on MacOS

Follow these steps to add a space to your Dock on MacOS:

Step 1: Open Terminal

Open Terminal by searching for Terminal in Spotlight. You can do this by pressing Cmd + Space and typing "Terminal", then pressing Enter.

Step 2: Add a Space to Your Dock

Copy the following command and paste it into Terminal:

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

Press Return after pasting the command.

Step 3: Restart the Dock

Now, execute the following command to restart the Dock and apply the changes:

killall Dock

Step 4: Repeat If You Want More Spaces

If you want to add more spaces, simply repeat steps 2 and 3. Each time you execute the commands, a new space will be added to your Dock.

Step 5: Move the Space

To move the space, click and drag it to your desired location on your Dock, just like you would do with an application icon.

Step 6: Removing the Space

If you decide you no longer want the space, click and drag it out of the Dock, similar to how you would remove an application from the Dock.


Remember, these commands are for adding spaces to the left side of the Dock (where applications are). If you want to add spaces to the right side of the Dock (where folders and the Trash are), use persistent-others instead of persistent-apps in the commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment