I use Ubuntu 16.04, and would like to change the shortcut for Redoing a certain action (i.e., to counteract the previously used Ctrl+Z) from Ctrl+Shift+Z to Ctrl+Y, as it is standard in Windows and therefore in my subconscious typing.

I followed these instructions but could not find how to specifically change this shortcut, as I could not find it in the Keyboard settings.

  • Isn't the link you have provided for 18.04 LTS? – Graham May 12 '18 at 8:13
  • 1
    This is application-specific or at least toolkit-specific (GTK+ vs. Qt, etc.) and not related to system- or session-wide shortcuts as described in your link. In what application(s) do you want to change the shortcut? – David Foerster May 12 '18 at 8:39
  • @DavidFoerster, actually it was Spyder, but I did manage to change it from its settings. System-wise though I have not been able to, yet. – raggot May 12 '18 at 12:37
  • If you solved your own problem, please answer your own question and accept your answer. Don’t put the answer in your question or the comments! :-) – David Foerster May 12 '18 at 12:48
  • 1
    @Melebius, I can't think of any Microsoft owned application where CTRL+Y is not applying Redo. Perhaps third-party applications may set it differently, but Windows' standard remains Redo. en.wikipedia.org/wiki/Control-Y – raggot May 16 '18 at 18:46

Since you explicitly ask for a system- or at lease session-wide solution in the comments: this cannot be done in a way that doesn't break lots of other things.

The Ctrl+Z, Ctrl+Y, and Ctrl+Shift+Z shortcuts that you mention are handled on the application level. Although it's possible to intercept and “translate” them before they ever reach an application it would interfere with many other things, e. g. applications that bind these to unrelated actions.1

Instead I recommend that you change the on the application level. Many applications without a distinct interface to change keyboard shortcuts still allow changes to them through their toolkit configuration, e. g.

1 If you still want to try it please look at xmodmap or xdotool. Relevant questions are:

  • Thanks for the answer. Would you mind actually explicate how to modify the basic bindings of the system? The warning will not be forgotten, but I'd like to know it! – raggot May 13 '18 at 12:16
  • 1
    @raggot: See the update to my answer. – David Foerster May 13 '18 at 20:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.