To disable non-breaking space, e.g. AltGr + Spacebar, one can issue:
setxkbmap -option "nbsp:none"This fixes it for programs like vscode but GNOME doesn't honor it. To fix that dump dconf settings for input-sources:
dconf dump /org/gnome/desktop/input-sources/ > input-sources.dconfOpen input-sources.dconf with editor and add 'nbsp:none' to xkb-options list so that you'll end up with something like:
xkb-options=['terminate:ctrl_alt_bksp', 'apple:alupckeys', 'nbsp:none']
Finally write settings
dconf load /org/gnome/desktop/input-sources/ < input-sources.dconfSource:
- https://hauweele.net/~gawen/blog/?p=32
- https://unix.stackexchange.com/questions/292868/how-to-customise-keyboard-mappings-with-wayland
- https://unix.stackexchange.com/questions/294286/how-can-i-autoload-xkb-customisations-in-gnome
- https://unix.stackexchange.com/questions/212573/how-can-i-make-backspace-act-as-escape-using-setxkbmap