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?

  • 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.


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")
  • See ~/.config/nautilus/accels in Ubuntu 20 – JellicleCat Nov 14 '20 at 19:16

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.


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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