How to disable the shortcut Ctrl-Alt-Arrow in GNOME 3.8

26,985

Solution 1

The new keybinding you define in 'Settings-->Keyboard-->Shortcuts-->Navigation' will get appended to the previous/default one.

It will become, for example.

gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-down

['<Primary><Shift>Down', '<Control><Alt>Down']

I managed to remove the default keybinding using the following commands

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "['']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "['']"

This clears all defined shortcuts for those tasks. And then just use 'Settings-->Keyboard-->Shortcuts-->Navigation' to define the desired shortcuts.

Source : https://bugzilla.redhat.com/show_bug.cgi?id=982695

Solution 2

In Ubuntu 18.04 Settings->Devices->keyboard in navigation search for shortcuts: super+up and super+down and change it, save in button define.

Solution 3

This worked for me on Ubuntu 12.04

Go to "System Settings -> Keyboard -> Shortcuts -> Navigation".

Find the workspace switching shortcuts bound to CTRL-ALT-ARROW. For each one of them do this:

Click on shortcut (so it says "New Accelarator..." allowing you to change the shortcut). Now Press 'Backspace' to clear it. It now says 'Disabled' for that shortcut.

Solution 4

I know this thread is pretty old. For me (Xubuntu 16.04, Xfce4) it helped to use xfce4-settings-editor and then go to xfce4-keyboard-shortcuts. Then scroll down to xfwm4 and "Reset" the bindings for the relevant shortcuts.

Solution 5

(The question is more general than just about Ctrl-Alt-Up/Down. As for me personally, I had the problem that my Emacs didn't get Ctrl-Alt-Left/Right. So, I'd like to write an answer with the solution I have found for Ubuntu 20.04.)

Those pointing at the compiz settings were right (via ccsm available after apt-get install compizconfig-settings-manager compiz-gnome, the latter one for /usr/lib/x86_64-linux-gnu/compizconfig/backends/libgsettings.so, although I'm not sure that backend is actually used in my system):

I couldn't find the bindings for these keys via the normal Ubuntu settings menu.

What's new in my answer is that not only compiz's Grid plugin (under "Window Management") could have bound these keys (which you'd like to use in a different way), but also the Desktop Wall plugin (under "Desktop" in ccsm). Especially, the bindings with Left/Right could be found by me to be bound in the latter plugin.

For all 4 (left, right, up, down), you might want to look through the bindings of both these plugins in ccsm (and disable them). Or use the search tool in ccsm to search for "left", "right", etc. in all the values.

After I disabled these bindings in ccsm, Emacs immediately started getting these key combinations. (Finally! That has been so inconvenient for me for so long to have this problem in Emacs whenever I had to use an Ubuntu computer...)

To enable for me the use of Ctrl-Alt-Up/Down in Emacs, I had to look into the usual Ubuntu settings menu, as in https://askubuntu.com/a/1145043/19753 , however, I didn't see such bindings there in the Navigation section of key shortcuts. In despair, I tried disabling the following ones: Super-PageDown/PageUp (note Page!), and that helped.

Share:
26,985

Related videos on Youtube

John Chain
Author by

John Chain

Updated on September 18, 2022

Comments

  • John Chain
    John Chain over 1 year

    I mapped Ctrl-Alt-Up/Down to open web-browser and email client but it didn't take effect. Ctrl-Alt-Up/Down still switch workspaces as the default setting of GNOME 3.8.

    I have tried log-out/log-in. No good.

    • Agustín Lado
      Agustín Lado over 5 years
      In Ubuntu 18.04 these shortcuts were shown as "Super+Down" and "Super+Up" but were actually Ctrl+Alt+Down and Up. In this case disabling these "Super" shortcuts was enough.
    • imz -- Ivan Zakharyaschev
      imz -- Ivan Zakharyaschev over 2 years
      @AgustínLado In my Ubuntu 20.04 system, it's even more strange: the settings that I discovered there were: Super+PageUp/PageDown (to move between desktops in Navigation) -- note Page! -- but those were the bindings that prevented me from using Ctrl-Alt-Up/Down (not PageUp/PageDown) in Emacs. askubuntu.com/a/1367734/19753
  • kris
    kris over 9 years
    Didn't work for me on Ubuntu 12.04. I.e. used the above gsettings commands, restarted and still ctrl-alt-down/up will switch workspaces.
  • geneorama
    geneorama about 9 years
    The window docking can be fixed via the CompizConfig Settings Manager. See askubuntu.com/questions/305092/…
  • Angelorf
    Angelorf almost 9 years
    Do I need to restart for the changes to be applied?
  • kris
    kris almost 9 years
    It's been a long time ago I disabled this. I'm sorry I can't remember if worked 'instantly' or not.
  • Angelorf
    Angelorf almost 9 years
    Restart didn't do the trick. The settings are back to normal and changing them never had any effect.
  • Angelorf
    Angelorf almost 9 years
    Worked on Ubuntu 15.04. :)
  • Angelorf
    Angelorf almost 9 years
    The answer by @mac did the trick. The post also has a link to a site explaining the bug I experienced.
  • kbtz
    kbtz about 8 years
    From all possible methods for removing gnome bindings, this is one is the most reliable one IMO. Worked for me on Fedora 23 - Gnome Shell 3.18... Thank you...
  • Paulo Pedroso
    Paulo Pedroso about 8 years
    Worked on Ubuntu Gnome 15.10
  • WesternGun
    WesternGun over 7 years
    To me this is working in Ubuntu 16.04 LTS. No restart needed. My hot key settings in Eclipse Mars conflicts with the system default ones.
  • kbtz
    kbtz almost 7 years
    Sometimes you may need to look it up using dconf as well: askubuntu.com/questions/171328/…
  • Paulo
    Paulo over 5 years
    This worked for me in Ubuntu 18.04
  • BMWCMW
    BMWCMW about 4 years
    You can also set to '[]' instead of "['']"
  • Mohammad Faisal
    Mohammad Faisal about 4 years
    I think instead of clearing the whole configuration it is better to keep the '<Super>Page_Down/Up'. $ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "['<Super>Page_Down']" $ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "['<Super>Page_Up']"
  • manikanta
    manikanta almost 4 years
    Worked in 20.04. But why super is equivalent to Alt + Ctrl ?
  • Arpad Horvath
    Arpad Horvath almost 3 years
    Worked for me on RedHat 8.2, gnome 3.32.2. I use Ctrl-Alt-Down in Pycharm.
  • imz -- Ivan Zakharyaschev
    imz -- Ivan Zakharyaschev over 2 years
    @manikanta In my Ubuntu 20.04 system, it's even more strange: the settings that I discovered there were: Super+PageUp/PageDown (to move between desktops in Navigation) -- note Page, but those were the bindings that prevented me from using Ctrl-Alt-Up/Down (not PageUp/PageDown) in Emacs. askubuntu.com/a/1367734/19753
  • kot-da-vinci
    kot-da-vinci over 2 years
    OMG! Super-PageDown/PageUp. Thanks. You saved my life! :)))
  • Admin
    Admin almost 2 years
    worked for me on Ubuntu 20.04.4 with GNOME Shell 3.36.9
  • Admin
    Admin almost 2 years
    Thanks a lot! Works fine to me on Ubuntu 20.04.4 LTS (Focal Fossa)