Technotes

Technotes for future me

How to Enable Minimize on Click on Ubuntu

How to Enable ‘Minimize on Click’ on Ubuntu

When you click on an application icon in the Ubuntu Dock (the bar on the left-hand side of the screen) one of the following things will happen:

  1. The app will open (if it’s not already running)
  2. The app will get focus (if it’s running but not in focus)
  3. Nothing (if the app is running and in focus)
  4. The application will restore (if previously minimized)
  5. If more than one window of the app is running a window picker is shown

“Minimize on click” changes the behaviour of #3 so that when you click an app icon it minimizes (hides) the window to its respective app icon in the Ubuntu Dock, and restores it on a second click.

Enable Minimize on Click in Ubuntu Dock

Open a Terminal window and run the command:

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'

Hit enter and, et voila, the change will take effect instantly.

Go click on an icon to see!

Now, if you don’t want to lose the ‘window’ picker (option 5 in the list at the start of this post) run the following command. This enables minimize on click BUT continue to show the window picker when more than one window of a given app is open:

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize-or-previews'

To undo the change (i.e. revert back to the default settings for the Ubuntu Dock) copy/paste this command:

gsettings reset org.gnome.shell.extensions.dash-to-dock click-action

Source:
https://www.omgubuntu.co.uk/2021/07/enable-minimize-click-ubuntu-dock

Last updated on 5 Jan 2024
Published on 5 Jan 2024
Edit on GitHub