I know, it's not the best means of sharing this, but since it appears to be a 
problem here:
Here is a more general way of solving this. Additionally, the script activates 
natural scrolling.


#!/bin/bash

set -eu

id=$(xinput list | sed -n '/SynPS\/2 Synaptics
TouchPad/s/.*id=\([0-9]\+\).*/\1/p')


naturalScroll=$(xinput list-props "$id" | sed -n '/Natural Scrolling Enabled 
(/s/.*(\([0-9]\+\)).*/\1/p')

click=$(xinput list-props "$id" | sed -n '/libinput Click Method Enabled
(/s/.*(\([0-9]\+\)).*/\1/p')

tap=$(xinput list-props "$id" | sed -n '/libinput Tapping Enabled
(/s/.*(\([0-9]\+\)).*/\1/p')


xinput set-int-prop "$id" "$naturalScroll" 8 1
xinput set-prop "$id" "$click" 0 1
xinput set-prop "$id" "$tap" 1

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xserver-xorg-input-evdev in Ubuntu.
https://bugs.launchpad.net/bugs/1246683

Title:
  Middle button does not work for scrolling

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/1246683/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to