Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Does anyone know of a way to assign a shortcut key combination to the menu items in the context menu that pops up in nautilus when you click on a file?

share|improve this question
Looking to create custom key combo for items that are in the context menu that comes up when you right click on things in Nautlius. I'm on Gnome 2.x. – slm Apr 4 '13 at 13:29
You can check out this answer (for Ubuntu) I am not sure what else you are running askubuntu.com/questions/88010/… – No Time Jul 30 '14 at 5:12

There already is one. It's Shift+F10.

This is a standard keystroke and works in many apps. And of course many keyboards have a dedicated context-menu key; it's the complement of the Windows key.

Either should work. Both do for me on Ubuntu 14.04 with Unity & Nemo.

share|improve this answer

Why don't you just use the context menu key? Most keyboards have it beside AltGr. If you keyboard does not have it, you can use .Xmodmap (merge it on the fly with xmodmap ~/.Xmodmap afterwards to test) to enable a right click shortcut for all programs.

share|improve this answer

Have a look at this blog post giving many examples on how to customize GTK keybindings via ~/.gtkrc-2.0. This should do what you intend,

binding "gtk-binding-widget" {
    bind "m" { "popup-menu" () }
class "GtkWidget" binding "gtk-binding-widget"

by binding m to the context menu. (However, I just tried it with Firefox and it didn't work... No nautilus to test it, sorry.) You could try other classes, too.

share|improve this answer

You could look through ~/.gnome2/accels/nautilus and edit and uncomment the appropriate key bindings. The bindings should be available after restarting nautilus (nautilus -q).

E.g. to activate the hotkey for creating a new folder change

; (gtk_accel_path "<Actions>/DirViewActions/New Folder" "<Primary><Shift>n")


(gtk_accel_path "<Actions>/DirViewActions/New Folder" "<Primary><Shift>n")
share|improve this answer

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.