Skip to content

Instantly share code, notes, and snippets.

@LakithKarunaratne
Created November 8, 2023 11:48
Show Gist options
  • Save LakithKarunaratne/a1352705ad2a97ac0fa0b81278e42c09 to your computer and use it in GitHub Desktop.
Save LakithKarunaratne/a1352705ad2a97ac0fa0b81278e42c09 to your computer and use it in GitHub Desktop.

How to show/hide the macOS Dock instantly

Open Terminal.app from Applications > Utilities Copy-paste one of the following commands & confirm it

On Intel-based Macs:

defaults write com.apple.dock autohide-delay -float 0 && killall Dock

On Apple Silicon-based Macs:

defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0.4 && killall Dock

Revert and add the delay back to the macOS Dock

Want to revert the behaviour and go back to adding a delay to show/hide the Dock again?

Apply the following command using the Terminal.app

For the single setting on Intel-based Macs

defaults delete com.apple.dock autohide-delay && killall Dock

For the 2 commands on M1 Macs

defaults delete com.apple.dock autohide-delay && defaults delete com.apple.dock autohide-time-modifier && killall Dock

Source

Swiss Mac User

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