Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
    
Are you looking for a shortcut key combo to trigger the right-click menu or only certain items in that menu ? Also, are you running Nautilus in Gnome ? –  don_crissti Apr 4 '13 at 13:26
    
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 at 5:12

2 Answers 2

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")

to

(gtk_accel_path "<Actions>/DirViewActions/New Folder" "<Primary><Shift>n")
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.