Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i want to disable right click in nautilus using Ubuntu 12.04. how to do that?

share|improve this question
up vote 6 down vote accepted

To disable right click for just desktop :

xmodmap -e "pointer = 1 2 99"

To apply for system wide:

xmodmap -e 'pointer = 1 2 0 4 5 6 7 8 9'

If you want to reverse it:

xmodmap -e 'pointer = default'

But, notice that it will restore to defaults upon rebooting.

Now, if you wish to make this option non-volatile do the following:

open dash --> startup Applications --> Add --> fill as in the image below

enter image description here

share|improve this answer
Its not working. When i apply the xmodmap -e "pointer = 1 2 99" , its blocking system wide right click but i just want the desktop right click to block. – YumYumYum Apr 10 '14 at 3:15

Your Answer


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