9

I want to allocate ctrl+alt+S to a shortcut in my IDE, however ubuntu uses this shortcut and it is not defined in the list under keyboard. Where do I set this shorcut?

13

I have found that since Ubuntu 16.04 Keyboard Bindings mostly doesn't show the windows management shortcuts (though occasionally it does, and I've never worked out what controls it).

However, I can check and modify them with dconf or the GUI version dconf-editor. Using this I see that ['<Control><Alt>s'] (lower case) is assigned to /org/gnome/desktop/wm/keybindings/toggle-shaded: this is not the default entry, though I didn't set it explicitly.

You can change the entry to a different shortcut (eg ['<Shift><Control><Alt>s'] or restore the default setting by deleting it completely ([]).

If this isn't the entry in your case, then you can use gsettings to find other locations of the shortcut:-

gsettings list-recursively | grep -i \>s\'

This will find all shortcuts using the s key (plus a few spurious entries, perhaps - note that you can't be sure of the ordering of <Control>, <Shift> and <Alt> within the setting).

  • I checked dconf already and it does not have a value set for 'toggle-shaded', i.e. []. So how do I find out what is connected to ctrl+alt+s...? – musicformellons Aug 24 '18 at 17:59
  • 5
    You could try gsettings list-recursively | grep -i \>s\' (you can't be sure of the ordering of <Control>, <Shift> and <Alt>). – AFH Aug 24 '18 at 18:05
  • 4
    Yeah, cool! This is the cause: org.gnome.shell.extensions.screenshot-window-sizer cycle-screenshot-sizes-backward ['<Shift><Alt><Control>s'] org.gnome.shell.extensions.screenshot-window-sizer cycle-screenshot-sizes ['<Alt><Control>s'] Could you add the reg to the answer, then I can approve! Thanks! – musicformellons Aug 24 '18 at 19:22
  • @musicformellons the answer solves the problem, you can accept it as is. No? :) – Sufian Jul 24 at 8:13

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.