Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was able to successfully install my Apple Magic Mouse into my installation of Ubuntu 11.10 out of the box, and I am happy with that! Thanks, Ubuntu, for supporting the Apple Magic Mouse out of the box.

However, I notice that the magic mouse has a very irritating behavior -- when you click the "middle button", it pastes the clipboard contents into the editor. This is problematic because the "middle button" is not clearly defined on the multi-touch mouse interface.

Is there a way of disabling the "middle button" behavior altogether on the Apple Magic Mouse without disabling any of the other behaviors, such as scrolling, etc.?

I would appreciate your response! Thanks!

share|improve this question

2 Answers 2

This mouse has the following buttons in this order: Button Left, Button Middle, Button Right, Button Wheel Up, Button Wheel Down, Button Horiz Wheel Left, Button Horiz Wheel Right. They can be manipulated with xmodmap. See "man xmodmap" for details.

To disable the middle click, create a ~/.Xmodmap file with this line:

pointer = 1 0 3 4 5 6 7 0 0 0 0 0 0

log out / log in to enable it.

If you want to reverse the scrolling direction (up with down and left with right), then change it to:

pointer = 1 0 3 5 4 7 6 0 0 0 0 0
share|improve this answer
    
What exactly those numbers mean? I understand that is 1 > 12, but what exactly wich one does? Because I want to disable right click on Magic Mouse too and I think it can be done with those numbers ;) –  euDennis Dec 21 '13 at 19:23

For the record, and since I just found this out: on Ubuntu 14.04 with a recent kernel (3.13), you can also add the following line to a file /etc/modprobe.d/magicmouse.conf:

options hid-magicmouse emulate_3button=0 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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