How to execute a command on every touchpad tap? I am constantly losing clicks (taps) on my touchpad, and situation doesn't seem to improve with new updates. I want to add a click sound for each successfull tap, so I don't have to wait for the clicks that did not happen. Also I would like to distinguish left/right and middle tap types (do different actions for each).
The solution must have acceptably low latency and not to be bound to a specific touchpad model. Also programatic solutions are welcome too (e.g. u can use library XYZ to implement this yourself).
I asked for a custom command, because in future I want to put a vibromotor under the touchpad (from a phone) for feedback.
Please, refrain from suggestions to fix the touchpad driver, because I would like this feature even on a perfectly working touchpad.