By default, double-clicking the top titlebar of any application window in Ubuntu toggles the window between its maximised state and its normal restored size. While this mirrors familiar Windows and macOS conventions, GNOME desktop allows you to reconfigure this double-click trigger to minimise windows, shade them into roll-up strips, or toggle lower-tier stacking order.
Custom Titlebar Actions Available in GNOME
Customising your titlebar response streamlines desktop multitasking. Ubuntu supports several distinct actions when double-clicking window titlebars:
- Toggle Maximize (Default): Expands the window to fill the entire desktop workspace, or restores it to floating dimensions.
- Minimize: Instantly collapses the active window into the Ubuntu dock, clear of your immediate view.
- Toggle Shade: Collapses the application body into just the top titlebar bar, preserving desktop space while keeping the window readily accessible.
- Lower: Sends the active window behind all other open windows without minimising it from memory.
- None: Disables the double-click gesture entirely, preventing accidental window resizes when clicking window titles.
Method 1: Customising Titlebar Actions Using GNOME Tweaks
The most user-friendly graphical utility for managing titlebar gestures is GNOME Tweaks:
- If you do not have GNOME Tweaks installed, open your terminal (Ctrl + Alt + T) and execute:
sudo apt update && sudo apt install gnome-tweaks -y - Open the GNOME Tweaks application from your Ubuntu application overview.
- In the left-hand navigation menu, click Windows.
- Locate the Titlebar Actions section in the central settings pane.
- Find the entry labelled Double-Click.
- Click the dropdown menu next to Double-Click and select your desired action: Toggle Maximize, Toggle Shade, Minimize, or Lower.
The modification takes effect immediately across all native desktop applications without requiring a system restart.
Method 2: Configuring Titlebar Actions via Terminal Command
If you prefer adjusting desktop settings directly via the command line or wish to automate workstation setup scripts, use gsettings:
- Press Ctrl + Alt + T to open a terminal shell.
- To configure double-clicking to minimise the active window, execute:
gsettings set org.gnome.desktop.wm.preferences action-double-click-titlebar 'minimize' - To switch to the classic Linux window shading roll-up behaviour, run:
gsettings set org.gnome.desktop.wm.preferences action-double-click-titlebar 'toggle-shade' - To revert back to standard Ubuntu maximise behaviour, run:
gsettings set org.gnome.desktop.wm.preferences action-double-click-titlebar 'toggle-maximize'
Configuring Middle-Click and Right-Click Titlebar Actions
In addition to double-click behaviour, GNOME Tweaks and gsettings allow you to assign distinct tasks to middle-clicking (such as sending a window to the background) or secondary clicking on window titlebars, giving you a comprehensive set of window management shortcuts.