Disables middle click emulation for ELAN touchpads with libinput. This script is super niche and probably wont be of much value to many people, but I'm going to put it up here on the off chance it comes in handy for anyone else. The reason I wrote this is that the IDs for both the touchpad and the middle click property change on reboot, so there's no quick BASH one liner you can throw in a script. I wrote this in Ruby instead of BASH because I know it better.
- Ruby
- X
- ELAN touchpad
- libinput
- Clone this repo
$ git clone https://github.com/adamrdrew/disable-middle-click.git
- Make the script executable
$ chmod a+x disable-middle-click.rb
- Run the script or put it in your startup applications list