64

There is no option in Mouse & Touchpad Settings to enable horizontal scrolling in Ubuntu 13.04+ (Raring/Saucy/Trusty) (GNOME 3.8+):

Mouse & Touchpad Settings

No horizontal scrolling even by enabling two finger scroll or content sticks to fingers.

How is it possible?

Braiam
  • 67,791
  • 32
  • 179
  • 269
AliNajafies
  • 5,874

5 Answers5

66

There’s a way through dconf Editor; so:

  1. open dconf Editor through the Dash;
  2. go to org > gnome > settings-daemon > peripherals > touchpad;
  3. check horiz-scroll-enabled, as you see in the screenshot.

Enable horizontal scrolling

Edit: Dconf Editor was pre-installed on 13.04, where I first faced the problem; but on 13.10 and 14.04 it’s easier to use gsettings, see Samuel Cavazos’s answer.

AliNajafies
  • 5,874
30

Alternative way: run this in your command line

synclient HorizTwoFingerScroll=1
nebirhos
  • 301
  • 3
  • 2
22

Or just run

gsettings set org.gnome.settings-daemon.peripherals.touchpad horiz-scroll-enabled "true"

in a terminal

Kevin Bowen
  • 19,615
  • 55
  • 79
  • 83
Samuel Cavazos
  • 321
  • 2
  • 4
  • This trick also works great if you have the opposite goal: turning the horizontal scroll off. Just set the variable to “false” instead of “true”. – Bryson S. May 08 '15 at 00:45
  • It said to set the value of the key. Nothing happened. – dustbindiva Jul 05 '16 at 18:39
  • Ran gsettings set org.gnome.settings-daemon.peripherals.touchpad horiz-scroll-enabled "true" in Terminal, nothing happened. – dustbindiva Jul 05 '16 at 23:33
  • 5
    $ gsettings set org.gnome.settings-daemon.peripherals.touchpad horiz-scroll-enabled "true"

    No such schema 'org.gnome.settings-daemon.peripherals.touchpad'

    – Ondra Žižka Feb 15 '17 at 21:56
  • The command probably doesn't work anymore. Ubuntu has change over the years since I posted this and I've switched over to another distro. – Samuel Cavazos May 12 '17 at 16:00
  • 2
    I am on Lubuntu 17.04 and also got the No such schema 'org.gnome.settings-daemon.peripherals.touchpad' message. – kiltek Oct 23 '17 at 06:09
9

Configure your Linux key binding to make Shift+Mouse wheel send an horizontal scroll event:

  • Install xbindkeys xautomation

  • Edit ~/.xbindkeysrc.scm and write:

      ; bind shift + vertical scroll to horizontal scroll events
      (xbindkey '(shift "b:4") "xte 'mouseclick 6'")
      (xbindkey '(shift "b:5") "xte 'mouseclick 7'")
    

Run xbindkeys.

Also, for Firefox 17+, open about:config and set:

  • general.autoScroll = true
  • mousewheel.with_shift.action = 1
  • mousewheel.with_shift.action.override_x=1 if on Firefox >= 121 (see the comment)
  • Optionally, configure scroll speed: mousewheel.with_shift.delta_multiplier_x = 300

Source: https://coderwall.com/p/xnez3g/horizontal-scroll-with-mouse-under-linux

I got both working. Although for xbindkeys, some apps stick with their own behavior, for instance Firefox.

4

On the MATE desktop variant, I found the following dconf path to work:

/org/mate/desktop/peripherals/touchpad/horizontal-two-finger-scrolling

If you do not already have the dconf-editor, you will want to run sudo apt install dconf-editor

Start dconf-editor and then search for "horizontal-two" and that should be specific enough to find it:

Screenshot of changing /org/mate/desktop/peripherals/touchpad/horizontal-two-finger-scrolling setting

I'm using a laptop with a Synaptics touchpad running Ubuntu (MATE) 18.04.

Yonn Trimoreau says that on Cinnamon, the following dconf path should work:

/org/cinnamon/settings-daemon/peripherals/touchpad/horizontal-scrolling

You would install the same dconf-editor, but search for "horizontal-scrolling" and then set it to on.

Azendale
  • 11,891