How to disable horizontal scrolling in Ubuntu 18.04 in terminal?
I found the answer to my own question, and so wanted to share what worked for me in case others are stuck. Pilot6's answer to the same question asked for 16.04 works with a little modification for 18.04. The following steps solve the issue:
- Install "libinput-tools" (this package name is slightly different from 16.04) and dependencies in terminal by running the following commands:
sudo apt update
sudo apt install libinput-tools
- Then enter the following line in terminal
sudo gedit /usr/share/X11/xorg.conf.d/40-libinput.conf
- The file will open in text editor. In the touchpad section, just before the line indicating the end of the section, add the following line:
Option "HorizontalScrolling" "False"
- Save and close the configuration file and restart. Horizontal scrolling should be disabled.