Install CompizConfig Settings Manager, find the Ubuntu unity plugin, Switcher tab, Set Key to start switcher
to disabled
This issue happens quite often with default settings. A lots of applications rely on Alt shortcuts but don't work because unity or compiz is already using them.
I don't know of a way to disable the shortcuts temporarily, but even if there is the best solution i've found is to avoid conflicts altogether. The first thing i do on a new setup is go through the desktop keyboard shortcut settings and have them use Super instead of Alt.
It makes things very clear:
- Super is for window manager actions
- Alt is always available for apps (except for Alt+Tab and Ctrl+Alt+Arrows which i like to keep).
The "windows" keys act as Super by default, but you could have the "menu" key do it:
(i like to have it on the right side and there's no right "window" key on my keyboard)
System Settings -> Keyboard Layout -> Layouts -> Options -> Alt/Win Key Behavior
and choose "Alt is mapped to Right Win, Super to Menu".
Now go through keyboard shortcut settings and change Alt bindings to Super ones.
Change compiz shortcuts as well with CompizConfig Settings Manager (install it first).
You can easily find all Alt shortcuts with:
Advanced Search -> Search in ... Settings value and type "Alt"
That's it, you will never be annoyed by conflicting shortcuts again.
Best Answer
Here is an example of how to disable and enable individual shortcut-keys in Compiz:
Assign these two commands to hotkeys, or just run them in the terminal (either asis, or in scripts).
You can setup your shortcut-keys via "Keyboard Shortcuts" in the Preferences Menu... (I use
xbindkeys
.. It has finer control over wihch keys you can use. eg Numlock on/off makes a difference.)Turn enable the shortcut-key for: Zoom Specific Level 1:
Turn disable the shortcut-key for: Zoom Specific Level 1:
If there are many hotkeys, just make two scripts: one for on, and the other for off
You can find all the Compiz keys in Gconf Editor: `gconf-editorenter code here