Is it possible to disable the GNOME (version 2) global keyboard shortcuts for a specific application?

I'm using the IntelliJ IDEA Java IDE under Ubuntu however some of the IDEA default keyboard shortcuts conflict with the GNOME shortcuts (e.g. Alt+F1, Ctrl+Alt+ or Ctrl+Alt+). I really don't want to change the conflicting shortcuts within IDEA. I need to use the default keymap for "compatibility" reasons.

I'm thinking of some kind of proxy command that redirects every keyboard activity to the application when it has the focus. Something like kbdproxy idea.sh.

  • 1
    Hi, have you found a solution? I'm going crazy for this problem with IDEA. – Roberto Leinardi May 19 '13 at 15:17
  • @RobertoLeinardi Unfortunately no :( – Sven May 20 '13 at 15:41
  • If you were using KDE, you can disable specific global shortcut from Global Keyboard Shortcut settings – Anwar Apr 7 '16 at 6:39

The latter two for workspace switching is possible to be disabled , download and install gconf-editor , locate this entry:


enter image description here

And leave them empty should work.

| improve this answer | |
  • 1
    These two shortcuts were just examples. There are others that conflict, too. I don't think it's a good solution to disable the conflicting GNOME shortcuts :-/ I still want to be able to use them outside of the application. – Sven Oct 13 '11 at 13:01
  • @Sven , You probably want to fire a bug report to the developers , ask them to grab all key events in X11. – daisy Oct 13 '11 at 15:05

I posted this question in stackoverflow expecting loads of excellent answers but got none.

My personal solution is currently:

  1. Install very light weight wm like 'twm': (sudo apt-get install twm)

  2. Kick off a concurrent X session with no wm: xinit /usr/bin/xterm -- :2

  3. Switch to new X session: control-alt-F8

  4. Start twm in xterm within new session: twm &

  5. Run program, enjoy programs shortcuts and be happy, switching back to other X session with control-alt-F7

| improve this answer | |
  • I also had to change /etc/X11/Xwrapper.config to say "allowed_users=anybody" in order for step 2 to work. – user467257 Feb 10 '14 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.