Ubuntu – Can I disable the F10 key for all apps without CCSM

compizshortcut-keys

Neither of these answered my question:

How do I disable the F10 (application menu) keybinding in Ubuntu 11.10?

How do I deactivate F1 and F10 keybindings in gnome-terminal?

The instructions in that thread seem to be specific to Gnome or compizconfig-settings-manager. That application looks a bit dangerous so I'm wondering if there's a way to do this without it. There's a keyboard shortcuts dialog but I couldn't find F10 in there.

This shortcut is colliding with a shortcut in Chrome that is used for debugging. It's pretty annoying that Ubuntu would assume no applications would be using the F10 key. I use at least 3 applications that need that key frequently.

11.10 screenshot

I'm using ubuntu 11.10

Best Answer

CCSM is mostly a GUI front-end which writes its values to the gconf database.

You can use gconf-editor to edit the compiz unity plugin options:

enter image description here

As you can see in the image - the F10 key is associated with the panel option located in the gconf path /apps/compiz-1/plugins/unityshell/screen0/options/panel_first_menu

Thus you can change this to another key value - or write the value Disabled to disable the F10 key altogether.

If you want to reassign the key, you can use the modifiers in combination to perform multikey shortcuts:

  • <super> for the WIN key
  • <alt> for the ALT key
  • <shift> for the SHIFT key

For some options you need to logout and login for the changes to take effect.

If you want to reassign/disable from the command line you can use the syntax:

gconftool-2 --set '/apps/compiz-1/plugins/unityshell/screen0/options/panel_first_menu' --type string 'Disabled'