But it's a bit too inconsistent for my liking.Īs an aside some other settings that might hide the Dock even better: defaults write launchanim -bool falseĭefaults write magnification -bool falseĭefaults write mineffect -string scaleĭefaults write com.apple. Strangely enough, when not using killall Dock, but instead having the Bash script be followed by some AppleScript to change screen edge, my OS X often applies the new value for tilesize on the fly. no matter how small the number is: won't help If anyone knows of any other side effect then please comment! I doubt one could achieve the same by scripting System Preferences using AppleScript, as that does not seem to support very small sizes, nor supports moving the Dock into a corner: tell application "System Events" Note: killall Dock also resets Dashboard (and probably Exposé, but not Spaces). See Fast User Switching/Apple Menu? for details about creating services, and assigning a keyboard shortcut to it. # Choose your personal preference, start, middle or end: # Make the Dock autohide, as small as possible, andĭefaults write autohide -boolean trueĭefaults write tilesize -int 1ĭefaults write autohide -boolean falseĭefaults write tilesize -int 20 Or, to get toggling using a single Automator service, and hence using a single hotkey: tileSize="$(defaults read tilesize)" The above commands can be added to an Automator service, and yet another to enable things again, like: defaults write tilesize -int 20ĭefaults write pinning -string middleīoth of these services can then be assigned a different hotkey. It should be totally out of the way at that point unless you mouse all the way over in the extreme bottom left hand corner. by default its icon also bounces repeatedly in the macOS Dock.
#DEFAULT MAC OS DOCK HOW TO#
From How to remove the Dock in Mac OS X Leopard: defaults write tilesize -int 1ĭefaults write pinning -string start This folder is available in the macOS Dock and contains all your Windows applications.