Skip to content

Instantly share code, notes, and snippets.

@mattitanskane
Last active April 28, 2025 19:44
Show Gist options
  • 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

@auraz
Copy link

auraz commented Apr 21, 2025

thanks!

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