Thank you very much for your answer, @amitp. Thanks to it I've discovered the culprits for all the interceptiion but one: Alt-!
! (I've searched for Alt
but can't find any combination with !
. However, Meta-!
doesn't work in Emacs):
org.gnome.mutter.keybindings switch-monitor ['<Super>p', 'XF86Display']
['<Super>p', 'XF86Display']
org.gnome.settings-daemon.plugins.media-keys rotate-video-lock-static ['<Super>o']
org.gnome.settings-daemon.plugins.media-keys touchpad-toggle-static ['XF86TouchpadToggle', '<Ctrl><Super>XF86TouchpadToggle']
org.gnome.shell.extensions.dash-to-dock shortcut-text '<Super>q'
With dconf-editor
I've managed to disable the first one, but I can't find the others. Doing it with the point-and-click approach of dconf-editor
is a pain. Do you know how to disable these keybindings from terminal? Thank you very much again!
Another answer re-directed me to
https://stackoverflow.com/questions/39785698/keyboard-shortcuts-file-gnome
My final answer
Great, thanks everyone for your help. So to recap:
$ gsettings list-recursively | grep Super
got me the list of commands that use super
in their keybindings. For example:
org.gnome.mutter.keybindings switch-monitor ['<Super>p', 'XF86Display']
['<Super>p', 'XF86Display']
org.gnome.settings-daemon.plugins.media-keys rotate-video-lock-static ['<Super>o']
org.gnome.settings-daemon.plugins.media-keys touchpad-toggle-static ['XF86TouchpadToggle', '<Ctrl><Super>XF86TouchpadToggle']
org.gnome.shell.extensions.dash-to-dock shortcut-text '<Super>q'
Then
gsettings set org.gnome.settings-daemon.plugins.media-keys rotate-video-lock-static "[]"
Deleted the <Super>o
binding for rotate-video-lock-static
, etc.
The only strange thing is that M-!
has started working in Emacs without me changing anything in Ubuntu/Gnome directly related to it.
Also, I have super-@
bound to something in Emacs and it seems to be intercepted by some command in Ubuntu/Gnome. However, it does not appear in the list given by gsettings list-recursively | grep Super
, or at least I can't recognize it. Is the @
symbol referred to by some kind of weird code or name by Ubuntu/Gnome maybe?
gsettings list-recursively | grep Super
orgsettings list-recursively | grep Mod4
. I think gsettings and dconf-editor might show the same things though.