Show/Hide the Dock instantly

May 2022 | Showing and hiding dock instantly

To show and hide the dock instantly, open Terminal and run:

defaults write autohide-delay -float 0 && defaults write autohide-time-modifier -float 0 && killall Dock

To get back the default animation and delay before showing the dock, run:

defaults delete autohide-delay && defaults delete autohide-time-modifier && killall Dock

This works on M1 macs on macOS 12.0 Monterey.

Before running these commands, ensure that the "Automatically hide and show the Dock" setting is enabled. Find this setting in System Preferences > Dock & Menu Bar.