How to disable global <Super>-p shortcut?

On Ubuntu 18.04, I found two different keybindings for SUPER+P, which can be disabled with dconf-editor.

First, you need to install dconf-editor, if it's not already installed. This can be done in the terminal with the following command:

sudo apt install dconf-editor

Then you can launch it from the terminal:

dconf-editor

Within dconf-editor:

  • Navigate to: /org/gnome/mutter/keybindings/switch-monitor
  • If the "Custom value" field contains ['<Super>p', 'XF86Display'], then:
    • Disable "Use default value"
    • In the "Custom value" field, type the following: []
  • Navigate to: /org/gnome/settings-daemon/plugins/media-keys/video-out
  • If the "Custom value" field contains '<Super>p', then:
    • Disable "Use default value"
    • In the "Custom value" field, delete everything.

The new version of gnome-settings-daemon stores its configuration information in dconf rather than gconf.

To do the equivalent of what you were doing on 11.04, try the following:

  1. Install the dconf-tools package, and then run dconf-editor.
  2. In the tree on the left, navigate org -> gnome -> settings-daemon -> plugins -> xrandr.
  3. Uncheck the active checkbox.

In order to disable global <Super>p keybindings, and NOT any other media keys (tested in Ubuntu 15.04) I had to 'emtpy' the following dconf keys. I ran (in a terminal):

dconf write /org/gnome/settings-daemon/plugins/media-keys/video-out ''
dconf write /org/gnome/settings-daemon/plugins/media-keys/screenshot ''

Before, I searched with the next bash commands for values that contained '<Super>p':

b="/org/gnome/settings-daemon/plugins/media-keys/"
for i in `dconf list $b | sort`; do echo -n "$i: "; dconf read $b$i; done

To search all dconf keys, use the command:

dconf dump / | grep '<Super>p'

If you want to avoid the terminal, run the program dconf-editor and search for the key(s) there...

Edit:

After some upgrades and restarts, I had the keybinding not working any more. I found, that there is/was a bug in gnome-settings-daemon that defines <Super>p. A hack is described here.

In the startup process, /usr/bin/xbindkeys_autostart is executed on login. This script searches for the file in $HOME/.xbindkeysrc and loads the settings.

Since I wanted to map gnome-screenshot -c to <Super>p, I created the this file with the following content (and unmapped the settings in ubuntu/compiz):

# Content of $HOME/.xbindkeysrc
"gnome-screenshot -c"
mod4 + p