How to Automatically Hide the Dock When Windows Overlap in Ubuntu

On standard Ubuntu desktop environments, the application dock remains pinned along the edge of the screen at all times. On laptops with compact screens or widescreen displays hosting multiple side-by-side windows, a permanently visible dock steals valuable horizontal or vertical real estate. Enabling intelligent auto-hiding allows your open windows to expand across the full display, with the dock smoothly concealing itself until you move your cursor to the edge.

Why Enable Smart Dock Auto-Hiding?

Configuring dock dodging behaviour elevates desktop ergonomics and productivity:

  • Maximum Workspace: Gives code editors, web browsers, and word processors uninterrupted edge-to-edge screen dimensions.
  • Intelligent Dodging: The dock remains visible when the desktop is clear, hiding only when an active application window directly touches or overlaps its boundary.
  • Frictionless Reveal: Simply push your mouse pointer against the edge of the screen to reveal the dock instantly, launching apps without clicking.
  • Multi-Monitor Harmony: Operates seamlessly across single displays or complex multi-monitor workstation setups.

Method 1: Enabling Auto-Hide via Ubuntu Settings GUI

Ubuntu includes a native toggle inside GNOME Control Centre:

  1. Click the system indicators tray in the top-right corner of the Ubuntu top bar.
  2. Click the Settings gear icon to open system preferences.
  3. In the left-hand navigation menu, click Ubuntu Desktop.
  4. Locate the Dock subsection.
  5. Find the setting labelled Auto-hide the Dock.
  6. Toggle the switch to the On position (the grey slider will turn blue).

Test the behaviour immediately by dragging any application window (such as Files or Terminal) towards the dock. The dock will slide smoothly off-screen. Move your mouse to the screen border to glide it back into view.

Method 2: Configuring Auto-Hide Using the Terminal

If you prefer configuring your workstation through shell scripts or command-line shortcuts, use gsettings:

  1. Press Ctrl + Alt + T to launch a terminal window.
  2. To activate dock auto-hiding immediately, execute:
    gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false
  3. To verify that intelligent window dodging is enabled, run:
    gsettings set org.gnome.shell.extensions.dash-to-dock intellihide true
  4. Should you ever wish to lock the dock permanently in place again, run:
    gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed true

Fine-Tuning Reveal Pressure and Sensitivity

If you find that the dock triggers too easily when browsing near the edge of a webpage, you can require slight mouse pressure before revealing. In GNOME Tweaks or through dash-to-dock extension settings, adjust the edge pressure threshold so deliberate cursor pressure is required to reveal the hidden bar.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.