2

I'm hoping to list all keybindings in Ubuntu 21.04 which would also show the ones not displayed by:

gsettings list-recursively org.freedesktop.ibus.general.hotkey
gsettings list-recursively org.gnome.desktop.wm.keybindings
gsettings list-recursively org.gnome.mutter.keybindings
gsettings list-recursively org.gnome.mutter.wayland.keybindings
gsettings list-recursively org.gnome.settings-daemon.plugins.media-keys
gsettings list-recursively org.gnome.shell.keybindings

For example, the binding CTRL+SHIFT+U really messes up text input in some programs, but I cannot find a way to disable it. Don't know where else to look for it.

2 Answers2

5

You can use gsettings list-recursively to list all the GSettings properties. Then use grep to find what you are looking for.

gsettings list-recursively | grep Control

In my case I did not know the name of the keybinding which causes the undesired behavior. So I just listed everything containing the CTRL key. Had an output of around 10 lines and found what I was looking for:

org.freedesktop.ibus.panel.emoji unicode-hotkey ['<Control><Shift>u']

Then disabled the keybinding using:

gsettings set org.freedesktop.ibus.panel.emoji unicode-hotkey "[]"

The original solution used a script, but thanks to N0rbert's comment, this answer is now heavily simplified.

  • 1
    Tooooooooo difficult. Single command is possible - gsettings list-recursively | grep Control | grep ibus . – N0rbert Oct 28 '21 at 05:52
0

I'm always bugged by these gnome shortcuts that occupy Ctrl+Alt+(Up or Down). This fixes it for me using NixOS syntax

  # Gnome settings tweaks
  systemd.user.services.gsettings = {
    script = ''
      gsettings set org.gnome.desktop.vm.keybindings move-to-workspace-down "[''']"
      gsettings set org.gnome.desktop.vm.keybindings move-to-workspace-up "[''']"
      gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "[''']"
      gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "[''']"
    '';
    wantedBy = [ "graphical-session.target" ];
    partOf = [ "graphical-session.target" ];
  };

See also How do I list absolutely every keyboard shortcut that Ubuntu/Gnome is using?

4levels
  • 187