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?

pomsky
  • 68,507
user246185
  • 1,047
  • 4
  • 10
  • 14

2 Answers2

116

Open Terminal and run

gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows'
pomsky
  • 68,507
  • 1
    Yes, it still works after reboot. – user246185 Oct 21 '17 at 21:12
  • Why there is no GUI support! not even by tweaks tool. – Amir Karimi Jan 28 '18 at 22:55
  • UPDATE: Installed the origin gnome dash-to-dock extension, now I can edit the settings. Are they (gnome dash-to-dock and ubuntu dock) just sharing the settings or they're basically the same! – Amir Karimi Jan 28 '18 at 23:02
  • @AmirKarimi Ubuntu Dock is a fork of dash-to-dock extension. – pomsky Jan 29 '18 at 06:55
  • @pomsky Do you have any idea why there is no settings button available for Ubuntu Dock in tweak like what is there for dash-to-dock? – Amir Karimi Jan 30 '18 at 13:13
  • It works also in Ubuntu 18.04. But in the GUI Editor dconf the cycle-windows option is'nt listed and isn't showd as current option. – user2342558 May 09 '19 at 12:07
  • Ahhh Finally! Thanks, been working like a savage for weeks! lol – nodws Jun 12 '19 at 18:11
  • 1
    Tested on Ubuntu 19.10 (Eoan Ermine) and worked. – Mahdi Mar 20 '20 at 02:31
  • 3
    Tested it on Ubuntu 20.04 and works like a charm. – Ethunxxx May 24 '20 at 21:01
  • It seems working for a switch from one app to another. However a more useful and logical feature seems to be switching among multiple windows of that same app above which the mouse is scrolling, isn't it? – funicorn Sep 05 '20 at 20:42
  • @funicorn Sounds like there's something wrong in your setup. The question and the answer are completely about switching between windows of the same application, there's nothing regarding switching applications. – pomsky Sep 05 '20 at 21:06
  • I ran the command in my Ubuntu 18.04 and didn't get any error. However, it's not working! Could you please let me know any possible fixes? Thanks in advance! – Milan Jan 13 '21 at 20:39
  • 1
    @Milan Try the detailed Solution 1 part from this answer posted to a similar question. – pomsky Jan 14 '21 at 06:13
  • @pomsky apologies for the late reply. But for that Solution 1, I have to install *Dash to Dock, right? Is there any other way to achieve this switching without installing Dash to Dock*? – Milan Feb 02 '21 at 00:32
  • @pomsky thanks again for your reply. Yup for get method, it's showing that scroll-action has already been set to 'cycle-windows'. This had not been working previously. However, I don't know what happened... after installing *Dash to Dock, I disabled it using Tweak Tools* app, and now I can scroll!! Thanks again for your time and prompt replies :) – Milan Feb 03 '21 at 02:52
  • 1
    Still works on Ubuntu 20.04.4 LTS in 2022 – shyammakwana.me Aug 23 '22 at 10:45
  • 4
    Still works on Ubuntu 22.04 :) – danil Aug 26 '22 at 11:39
  • I did it on Ubuntu 22 but the whole dock scrolls simultaneously with open windows. Can I disable simultaneous dock scrolling somehow? – Dimitris Papazacharias Oct 28 '22 at 17:50
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/dash-to-dock@micxgx.gmail.com/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/dash-to-dock@micxgx.gmail.com/schemas/ list-recursively org.gnome.shell.extensions.dash-to-dock

Source of inspiration

  • 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 May 07 '21 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 May 17 '21 at 03:39