[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Binding 'Windows' key to Gnome menu?



On Wed, May 07, 2003 at 12:04:49PM +0100, Mark Shuttleworth wrote:
} Is there any way to bind the 'Windows' key, the one that brings up the 
} 'Start' menu under Windows XP, to the Gnome Applications menu? Would 
} save a mouse movement or two. Or is there another key alread bound for 
} that menu that I don't know about? Am running Debian Unstable.

This is a two-step process. First off, you must map that key to some
non-modifier keysym. If you don't know how to remap a key in X11, you'll
need to read up on xmodmap (read the man page). To find the windows key(s)
keycode(s) you will want to run xev (read the man page on that as well). I
recommend mapping the key(s) to something generally unused, such as KP_F1.

The second step is to set the keyboard shortcut for popping up the menu.
This is available in the Keyboard Shortcuts preferences window, which you
open from the GNOME menu itself (GNOME menu->Applications->Desktop
Preferences->Keyboard Shortcuts). There should be a "Popup the panel menu"
action, and clicking on it will let you type the key you want to use as the
shortcut, e.g. the windows key.

Example of remapping the windows key, which may or may not work on your
system:

xmodmap -e "keycode 115 = KP_F1" -e "keycode 116 = KP_F1"

} Mark
--Greg



Reply to: