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.

Is there a way of choosing between right and middle click for pasting? There are ways of for disabling it, I want to change the behaviour

How do I disable middle mouse button click paste?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You can open a terminal and paste this so the right button will behave as the middle (and the middle will behave as the right):
xmodmap -e "pointer 1 3 2"

share|improve this answer
works with xmodmap -e "pointer = 1 3 2", thx I was actually after the paste functionality only, would be nice to keep the right click in place. –  troyaner Aug 13 '11 at 15:01
I will try to find a better solution for you ;-) –  desgua Aug 13 '11 at 15:02
google suggests not much. for a touchpad the default middle-click-paste is a bug not a feature... –  troyaner Aug 13 '11 at 15:05

The solution involves you to download source code of gnome terminal and apply the patch and then you will need to build a package which will build deb packages and then you can just install from those packages.

For more clear instructions you can view this page.

share|improve this answer
@zwets: Thanks for suggesting. –  g4ur4v Mar 15 '13 at 6:45

Your Answer


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.