I would still like to use the dock and toggle show/hide with the default keyboard shortcut, but just take the mouse trigger out of the equation completely.
I know similar questions have been asked but I am not looking to always hide, disable or remove the dock, just turn off the mouse trigger for it.
Best Answer
From How to remove the Dock in Mac OS X Leopard:
This is kind of a workaround though:
The above commands can be added to an Automator service, and yet another to enable things again, like:
Both of these services can then be assigned a different hotkey. Or, to get toggling using a single Automator service, and hence using a single hotkey:
See Fast User Switching/Apple Menu? for details about creating services, and assigning a keyboard shortcut to it.
Note:
killall Dock
also resets Dashboard (and probably Exposé, but not Spaces). 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:Strangely enough, when not using
killall Dock
, but instead having the Bash script be followed by some AppleScript to changescreen edge
, my OS X often applies the new value fortilesize
on the fly. But it's a bit too inconsistent for my liking.As an aside some other settings that might hide the Dock even better: