I prefer backspace right above "enter". In windows this can be accomplished with autohotkey. On my desktop a HKKB keyboard has this layout built-in.
Following Custom keyboard layouts (Ubuntu) has me swapping <BKSL>
and <BKSB>
in usr/share/X11/xkb/symbols/pc
. This yields the behavior that both backspace and backslash enter a backslash, rather than swapping the keys functionality. Swapping via xcape -e 'BackSpace=backslash'
and its alternate will insert then delete a backspace.
How can backspace and backslash be swapped in Ubuntu?