Ubuntu - Mouse - Disable Middle Click Paste


Disable the Middle Button

xinput set-button-map 8 1 0 3 4 5 6 7 8 9

NOTE: The initial 8 is the Mouse Id as determined per Determine the Mouse.

  • Here, button 2 is replaced by a zero.
    • This disables this button.
  • Instead of disabling the button could be mapped to some other function than paste.