Disable Dock in Full Screen

I have disabled the Dock in the desktop spaces with the following command.

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

But when an app is in full screen mode, I can still open the Dock when I move the mouse to the screen edge and then move it again in that direction.

How to disable the Dock in macOS High Sierra in full screen mode?


Solution 1:

The best workaround I've found:

defaults write com.apple.dock tilesize -int 1
killall Dock

This makes the dock so tiny that it won't ruin your fullscreen workflow when it does pop out.

Solution 2:

You can set the dock to show and hide in the system preferences pane. Go to system preferences and check the box to hide and show the dock. After doing this you can set a time for how long you must hover over the dock pane to make it appear. This is done with the following terminal command: defaults write com.apple.Dock autohide-delay -float 5 && killall Dock. This sets the time to 5 seconds. You can make that number much larger to accomplish what you want.

The details of this answer came from here. This link also tells you how to turn it back on.