I can view the current button mapping thusly:
$ xinput get-button-map "Logitech USB-PS/2 Optical Mouse"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 10
Really, only the first three numbers have meaning for me. They represent the left, middle, and right mouse buttons.
I can turn the middle mouse button off by setting it to 0:
$ xinput get-button-map "Logitech USB-PS/2 Optical Mouse" 1 0 3
Or I can turn the middle-mouse button into a left-mouse button by setting it to 1:
$ xinput get-button-map "Logitech USB-PS/2 Optical Mouse" 1 1 3
Bookmarks