3

I want to disable switching between different Workspaces by scrolling the mouse wheel when the pointer is over the dock of Ubuntu 22.04 LTS. I tried the following solutions:

solution_1

solution_2

solution_3

but none of them worked. I also tried downloading gnome extension manager and searching for the relevant extensions but couldn't find one.

System: Ubuntu 22.04, Linux Kernel version 5.15.0-30-generic, GNOME Shell version 42.0

  • Gnome4 won't let you do it. It always creates one more workspace than you've occupied. – kanehekili Aug 06 '22 at 18:27
  • @kanehekili, I want to use multiple workspaces but don't want to switch between them by scrolling the mouse wheel. – TheMaskedTitan Aug 06 '22 at 19:43
  • Same. Florian Müllner (which is one of the few gnome developers that really supports users) mentions it [here](https://discourse.gnome.org/t/how-to-disable-super-mousewheel-switching-workspaces/8109). The gist is to write your own addon. – kanehekili Aug 06 '22 at 20:42
  • The link in your first solution worked immediately for me on Ubuntu 22.04. – Ring Feb 17 '23 at 18:05
  • 2
    Does this answer your question? [Disable switching between different desktops with mouse scroll](https://askubuntu.com/questions/1404348/disable-switching-between-different-desktops-with-mouse-scroll) – muru May 01 '23 at 05:05

1 Answers1

0

Initially the solution_1 mentioned in my question was not working when I posted this question. But for some reason now it's working.

You have to do the following as mentioned in solution_1:

gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'do-nothing'