How can I map Ctrl+Backspace to behave as Delete key with xkb? I can remap a single key on /usr/share/X11/xkb/symbols/pc but can’t figure out how to do the combination. My OS is Ubuntu 15.04
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
As Gilles pointed out in a comment, you can do it with xkb if you change the type of BKSP key to control-modifiable.
Example: if I edit /usr/share/X11/xkb/symbols/pc and under:
include "pc(editing)" include "keypad(x11)"
change this line:
key <BKSP> { [ BackSpace, BackSpace ] };
to:
key <BKSP> {
type="PC_CONTROL_LEVEL2",
symbols[Group1]= [ BackSpace, Delete ]
};
then Ctrl+Backspace behaves as Delete.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0