Skip to content

Instantly share code, notes, and snippets.

@mattitanskane
Last active January 22, 2024 12:53
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattitanskane/43eb9a4b59f16ce46d2a6dbf6c02b87d to your computer and use it in GitHub Desktop.
Save mattitanskane/43eb9a4b59f16ce46d2a6dbf6c02b87d to your computer and use it in GitHub Desktop.
How to hide the Dock on MacOS

I never use the Dock and all it does for me is come in the way when I'm resizing windows or clicking on stuff I can't access using just my keyboard.

Here's a way to hide the Dock so it doesn't get in the way anymore.

Run the following commands in the terminal.

# Hide Dock
defaults write com.apple.dock autohide -bool true && killall Dock
defaults write com.apple.dock autohide-delay -float 1000 && killall Dock
defaults write com.apple.dock no-bouncing -bool TRUE && killall Dock

And if you want it back run the following commands.

# Restore Dock
defaults write com.apple.dock autohide -bool false && killall Dock
defaults delete com.apple.dock autohide-delay && killall Dock
defaults write com.apple.dock no-bouncing -bool FALSE && killall Dock

Thanks to @joonaspaakko for a great write-up.

At the time of writing seems to work on MacOS Big Sur 11.2.1

@lacostenycoder
Copy link

OMG Dock is so stupid. THANK YOU!!!! Works on lates MacOS 13.0.1 too!

@lacostenycoder
Copy link

Made Ruby script to toggle it if you want. Symlink to /usr/local/bin/ etc.
https://gist.github.com/lacostenycoder/1de15cb0f8a6b440da830ac126d0bc32

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