Created
March 14, 2021 15:14
-
-
Save dukechem/600965ea649b0c85fac922fcc7d9d989 to your computer and use it in GitHub Desktop.
Inadvertent middle-button on touchpad closes browser tabs, pastes in terminal. Add lines below to .bashrc to Disable mouse middle button emulation by touchpad
To see how or if it works...
Try it manually
$ which xinput
/usr/bin/xinput
$ xinput | grep -i touchpad
⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)]
$ xinput --list-props 12 | grep -i middle
$ xinput --list-props 13 | grep -i middle
libinput Middle Emulation Enabled (333): 0
libinput Middle Emulation Enabled Default (334): 0
before and after
$ xinput --list-props 13 | grep -i middle
libinput Middle Emulation Enabled (333): 0
libinput Middle Emulation Enabled Default (334): 0
$ source ~/.bashrc # above is before ever running script and below is after running script.
$ xinput --list-props 13 | grep -i middle
libinput Middle Emulation Enabled (333): 1
libinput Middle Emulation Enabled Default (334): 0
$ # first prop is now 1 (insteadof 0) and 1 is what we want to actually disable middle-button emulation. Go figure.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://forums.linuxmint.com/viewtopic.php?t=284009