Hide, tune and replace the macOS Dock, and make it fit how you actually work.
Auto-hide the Dock, stop it popping up with a Terminal command, undo it, or replace it with another dock. Step by step, for current macOS.