Desired Effects Sought
- Hide Dock at Will
- Keep Dock on Main Screen
Hide Dock at Will
Set hotkey to hide dock
in OS X: System Preferences > Keyboard > Shortcuts > Launchpad & Dock
check "Dock Hiding On/Off”
Set hotkey for “Dock Hiding On/Off” to Control D (or whatever you want).
Set timing for Dock Hiding timing to long duration (as shown in the following commands). I set mine to 99 (I think) so I will not accidently trigger the Dock.
Set timing for Dock Hiding timing to long duration (as shown in the following commands). I set mine to 99 (I think) so I will not accidently trigger the Dock.
Enter this into Terminal to make the Dock show without a delay:
defaults write com.apple.dock autohide-delay -float 0; killall Dock
Maybe you want to have a long delay (5 seconds) so that you never accidentally trigger the Dock:
defaults write com.apple.dock autohide-delay -float 5; killall Dock
To restore defaults:
defaults delete com.apple.dock autohide-delay; killall Dock
Keep Dock on Main Screen
You would think this is easy, but what really screws things up is when you move an application to full screen. It wreaks havoc with the dock positioning as well as revealing. To fix the problem, I am now trying Lawrence Post for the Apple Scripts. I implement them using Keyboard Maestro (highly recommend that app for automating these things). Should the full screen situation create a dock positioning problem, I simply set a hotkey to execute the Apple Script and reposition the dock.
Still to do
Automate using Keyboard Maestro to sense the dock has been moved to other monitors and automatically put the dock back to the main screen without using a hotkey.