How to make clicking the sidebar icon to show a quickview of all of the opened instances of the similar app? [duplicate]

I'm using Ubuntu 18.04. I would like to use two different settings for click-action on the Ubuntu dock.

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

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

When using this two commands only the last one is working. These commands are overwriting each other.

Is there a way to have both active at the same time?


Solution 1:

Update: On newer versions of Ubuntu dock, this feature can be turned on by simply running the following command in Terminal:

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

Original answer:

No, it's not possible (yet). Dash to Dock developers did implement a 'minimize-or-previews' action in version 63, but this version is not available in the official site yet and Ubuntu dock being a fork of Dash to Dock also doesn't support the action yet.

But you can set one action to mouse click and another to Shift+mouse-click as an alternative. For example, run

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

to set 'minimize' action to mouse-click. Then run

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

to set 'previews' action to Shift+mouse-click.