I am getting progressively worse hand pain from using the mousewheel. I have two questions:

1) How can I disable the mousewheel? I realize tape, glue, pointy spikes poking up could work, but is there a less drastic software solution?

2) On windows you can hold a button then scroll using the mouse to drag the window. This seems it could be a better option.

Update: I have resorted to tape (1) and found the gpointing-device-settings tools (2) from this answer: MouseImp alternative on Linux (drag and scroll)?


To disable the mouse wheel, type xinput into the Terminal and find the device name of your mouse (mine was "Logitech Unifying Device. Wireless PID:101b").

You can test this by typing xinput --disable "Your Mouse Name" and checking whether the mouse responds. To reenable the mouse, type xinput --enable "Your Mouse Name".

Type xinput set-button-map "Your Mouse Name" 1 0 3 0 0 6 7 8 9

Replacing 2, 4, and 5 with zeroes will disable middle click and scroll up/down, respectively.

You can add this to Startup Applications.

  • that works - thanks rob! i had actually looked at this earlier but didn't figure out the button numbers (by looking at xev). however it also disables the gpointing override (2). – Tom Carchrae Dec 31 '14 at 6:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.