My touchdpad has two buttons (not tapping) and I used to configure two-finger tapping as middle click with synclient.
Now, with ubuntu-gnome 16.10, libinput is the way to go and I tried to achieve the same without success until now.
I tried the approaches mentioned in https://wiki.archlinux.org/index.php/Libinput. I have a file /etc/X11/xorg.conf.d/30-touchpad.conf with
Section "InputClass" Identifier "touchpad" Driver "libinput" MatchIsTouchpad "on" Option "Tapping" "on" Option "TappingButtonMap" "lmr" EndSection
which does not have effect. I can use
Option "ButtonMapping" "1 3 2 4 5 6 7 8 9 10 11"
Then two-finger-tap works for middle click, but the real right button will be a middle-click, too. I also tried a set of scripts and gnome configurations without success until now. Is there any solution with libinput, or do I have to switch back to synclient?
Any help appreciated.
libinput does not have the
You can use
ButtonMapping, but as you noticed the physical buttons will be remapped too.
You can always revert to
sudo apt remove xserver-xorg-input-libinput
As you have already discovered, the option you want is TappingButtonMap.
Option "TappingButtonMap" "lmr"
The issue is seemingly that Ubuntu 16.10 ships with version 0.19.0 of xserver-xorg-input-libinput. The property you (and I) want was added in a later version. Version 0.23.0-1 that ships in the development version of 17.04 supports it according to the documentation.