I'm having trouble setting a keyboard shortcut in Ubuntu. Trying to use the win (super) key as a modifier, but as soon as I press the win key the keyboard shortcut UI just assumes I wanted to use just that key.
I figure the easiest thing would be to modify the settings file itself, where I should be able to put in whatever I want. But I can't figure out where that's stored. Does anyone know?
Best Answer
My settings seem to be stored in Gconf. You can access these in the gconf-editor under /apps/metacity/global_keybindings or /apps/metacity/window_keybindings.
These settings are stored in
$HOME/.gconf/apps/metacity/global_keybindings/%gconf.xml
and$HOME/.gconf/apps/metacity/window_keybindings/%gconf.xml
. If you'll be changing the XML directly, I recommend logging out, making changes in a virtual terminal, and then logging back in.Sample entries in my gconf-editor (changing them here should take effect immediately):
Sample entries in my global_keybindings XML:
p.s. I wonder if your troubles with the settings UI are caused by a specific driver or keyboard layout. You might try setting or tweaking the layout or keyboard model used (System > Preferences > Keyboard, Layouts tab). Also check the Options dialog on the same tab; there are some tweaks for the Alt/Win keys.