Monday, May 21, 2007

GTK dynamic key bindings

Put the following in your ~/.gtkrc-2.0 file (create the file if it doesn’t exist):

gtk-can-change-accels=1

now you can change bindings in menu like this:

Open a menu, move the cursor above the menu item you want, press the shortcut you want to assign. This shortcut will appear next to the menu label. You're done (fabulous)!

To remove a binding that you don't want, press CTRL+backspace on that menu.

No comments: