[Feature-Request] Enable / disable tapping by number of fingers
I am re-creating, here, a feature request from old bugzilla site, just for the record and also just in case it gathers more votes, now that libinput is fairly advance and stable.
I wish that the person who recently re-opened old request on bugzilla site, added more weight to the feature request instead of writing with an offensive tone.
I would also request re-considering the feature.
Old RFE Link: https://bugs.freedesktop.org/show_bug.cgi?id=99756
Copy-paste follows:
Hello
I recently switched from Synaptics to libinput (as that became default in Arch linux recently)
I generally do not like tap to click behavior because I always end-up clicking something by accidental touches and hence I always disable it.
But in synaptics I used 3-finger tapping (middle click). It was very handy for opening links in new tab directly. And it is very unlikely that someone will accidentally touch 3 fingers on touchpad.
I was able achieve do this in Synaptics setting "TapButton1" and "TapButton2" to zero and "TapButton3" to 2 in xorg.conf.d file.
In libinput there is one similar option to set "ButtonMapping".
If I set it to "0 2 0" then one finger and 2 finger taps dont work but 3 finger taps work. But wait it also disable physical left and right buttons too!
How do I keep physical button active but only 3-finger tap to work (i.e. 1 finger or 2 finger tap should not do anything)
Please suggest or accept my request for this feature.
Thank you
Alternate way:
There is already an option called: TappingButtonMap
Currently it allows only two values lrm or lmr
Can it not be extended, like instead of fixed words (lrm OR lmr) it can be 3 letter word from l, m, r and d (where d means disable)
user can set it to ddm (will solve my feature request)
or rlm (single click is right click)
or mlr (single click is middle click)
or even dlr (for those who like tapping but want to avoid single finger accidental touch)
This should also make code more simpler and more flexible without too much addition to code.
Thank you in advance