Gnome-Terminal - How do I reset keyboard shortcuts?

6,221

Short answer

This setting is stored in the dconf database.
The command to restore the default keyboard shortcut to paste in the terminal is:

dconf reset /org/gnome/terminal/legacy/keybindings/paste

or to set it to a specific value:

dconf write /org/gnome/terminal/legacy/keybindings/paste "'<Primary><Shift>v'"

Unfortunately, there is no gsettings key for it, so you need to write to dconf directly.


The question is however

...why it didn't stick when setting the key from the GUI. In case of errors, you will find out in the output of the command(s) above.

Share:
6,221

Related videos on Youtube

DGs
Author by

DGs

Photographer with enthusiasm towards computer related subjects such as programming, arduino, etc.

Updated on September 18, 2022

Comments

  • DGs
    DGs over 1 year

    I have an issue with the Gnome-terminal since early on where I was unable to copy from the terminal( Ctrl+Shift+C ), even with text being highlighted, so I made the mistake of disabling it to see if re-enabling it and inputting the shortcut back would fix it.

    However, when I press those keys, the tab with "New accelerator..." won't pick up Ctrl+Shift+C. It will only do either Shift+C or Ctrl+C.

    I have tried several steps from answers I've found online in terms to reset the gnome-terminal to default settings, such as removing the .conf files, using the dconf-editor to remove profile info, removing and purging the application, etc. None of these seemed to have worked. Does anyone have any other ideas?

    • Jacob Vlijm
      Jacob Vlijm about 7 years
      Hi DGs, just curious, but did you manage?
  • DGs
    DGs about 7 years
    Hi Jacob, thank you for your help. When I run this command it works and it successfully resets the key bindings. However, when I try to actually highlight something and press these keys, they do not copy. The paste function seems to work, however. Does the <Primary> mean left shift or right shift? It seems as if though it only picks up on the right shift key. Thank you very much for the help!
  • Jacob Vlijm
    Jacob Vlijm about 7 years
    @DGs could you run dconf dump / | grep Primary and seee what combinations with Primary are set? Primary is the Ctrl key.
  • MarsAndBack
    MarsAndBack about 3 years
    An additional question is... why can't you do this from the Preferences menu?