56

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?

63

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.

  • 12
    Thank you! I still don't understand the reason for removing that option from the control panel :/ – mid_kid Apr 16 '13 at 21:09
  • 3
    Yeah, me too. Seems it’s about GNOME project, where functionality is sacrificed for simplicity! – Alen Apr 17 '13 at 19:10
  • 1
    At least they don't make it impossible ;) – mid_kid Apr 23 '13 at 15:37
  • 1
    This is a moment when I wish stackoverflow framework permitted multiple upvotes ;) thanks – lu1s Jul 23 '13 at 8:23
  • 2
    What if there is no touchpad key? FYI: My laptop gots touchpad. v16.04 – Waldemar Wosiński Jan 20 '17 at 11:34
24

Alternative way: run this in your command line

synclient HorizTwoFingerScroll=1
  • Does it enable edge scrolling too if I’ve disabled two-finger scrolling? – Alen Aug 29 '13 at 15:45
  • I think edge scrolling is controlled by other options: VertEdgeScroll and HorizEdgeScroll – Dmitry Pashkevich Jan 18 '14 at 15:55
  • 4
    Neither dconf editor nor gsettings worked for me on Lubuntu 14.04, but this one did: synclient HorizEdgeScroll=1 – iynque Mar 6 '15 at 3:08
  • 2
    @iynque Works on Xubuntu 16.04 as well. How do you make this permanent? – sawablo Dec 18 '16 at 11:17
  • I am on Lubuntu 17.04 and i got an error message stating: Couldn't find synaptics properties. No synaptics driver loaded?. – kiltek Oct 23 '17 at 6:11
21

Or just run

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

in a terminal

  • 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 8 '15 at 0:45
  • It said to set the value of the key. Nothing happened. – dustbindiva Jul 5 '16 at 18:39
  • Ran gsettings set org.gnome.settings-daemon.peripherals.touchpad horiz-scroll-enabled "true" in Terminal, nothing happened. – dustbindiva Jul 5 '16 at 23:33
  • 4
    $ 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
  • 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 6:09
4

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
  • 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.

  • This is fantastic, thank you sooo much, you're the best. – zwolin Sep 24 '18 at 18:54
1

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

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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.