55

I would like to switch between windows using the scroll wheel of the mouse over each app icon in Ubuntu dock, as we could do in Unity, but apparently this doesn't work in Ubuntu 17.10.

Is there a way to enable it?

enter image description here


Related: How do I enable 'minimize on click' on Ubuntu dock in 17.10 and later?

0

2 Answers 2

116

Open Terminal and run

gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows'
18
  • 1
    Yes, it still works after reboot.
    – user246185
    Commented Oct 21, 2017 at 21:12
  • 1
    Tested on Ubuntu 19.10 (Eoan Ermine) and worked.
    – Mahdi
    Commented Mar 20, 2020 at 2:31
  • 3
    Tested it on Ubuntu 20.04 and works like a charm.
    – Ethunxxx
    Commented May 24, 2020 at 21:01
  • 1
    @Milan Try the detailed Solution 1 part from this answer posted to a similar question.
    – pomsky
    Commented Jan 14, 2021 at 6:13
  • 4
    Still works on Ubuntu 22.04 :)
    – danil
    Commented Aug 26, 2022 at 11:39
1

For those who get the message (pop_os 20.04):

No such schema “org.gnome.shell.extensions.dash-to-dock”

The solution is a longer:

gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows'

Explanations:

I've manually installed my dash-to-dock directly in the ~/.local/share/gnome-shell/extensions, which is where the schemas directory is located. It has to be specified explicitly.

Usage of gsettings:

gsettings [--schemadir SCHEMADIR] set SCHEMA[:PATH] KEY VALUE

Set the value of KEY to VALUE with Arguments:

  SCHEMADIR A directory to search for additional schemas
  SCHEMA    The name of the schema
  PATH      The path, for relocatable schemas
  KEY       The key within the schema
  VALUE     The value to set

To list the current KEYs and their VALUEs:

gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ list-recursively org.gnome.shell.extensions.dash-to-dock

Source of inspiration

2
  • 2
    You'll get the No such schema “org.gnome.shell.extensions.dash-to-dock” in pop_os, but it's highly unlikely in a standard Ubuntu 20.04 installation. Ubuntu comes with the 'Ubuntu Dock' extension (fork of dash-to-dock) by default, hence the schema is present. On the other hand pop_os doesn't come with any such extension. In this aspect pop_os and Ubuntu are very much not the same.
    – pomsky
    Commented May 7, 2021 at 18:53
  • You are correct, the schema was only for pop_os, edited to reflect your remark. And I had installed the extension manually.
    – calocedrus
    Commented May 17, 2021 at 3:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .