Skip to content

Instantly share code, notes, and snippets.

@alexander-potemkin
Forked from mattitanskane/hidedock.md
Created November 20, 2022 09:21
Show Gist options
  • Save alexander-potemkin/4e567bd2b6e0fe07c51d72ae11b5d87a to your computer and use it in GitHub Desktop.
Save alexander-potemkin/4e567bd2b6e0fe07c51d72ae11b5d87a 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

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