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

@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

@mattitanskane
Copy link
Author

I'm not surprised there are bugs to this workaround by now. I personally just disabled the ⌥⌘D keyboard shortcut and haven't seen my dock in years. 😇

@lisamoreno
Copy link

Thank you so much 🫶🏻

@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