I have an Apple Mighty Mouse, but it's been banged up a bit. The side buttons (4th buttons) are way too easily pressed. When I'm using Firefox, the 4th button can accidentally click and I'd go back one page, which can be really aggravating. How can I disable the 4th button (on either Firefox or Ubuntu) without getting any new hardware?
Those buttons (forward and back) drive me crazy too! Here's what worked for me:
Open a terminal (CtrlAltT by default), and run:
This will pop open a window. Move the mouse into that window, and press the key(s) that you wish to disable. Look at the third line for each button-press, which will look something like:
Note the number after
In your case, to just disable button 4, you'd want
This will load the
Most desktop environments should load this file automatically next time you log in, making the change permanent.
This is an old question, but I hope this answer helps someone.
its simple. just follow these steps: