Skip to content

Instantly share code, notes, and snippets.

@kmikko
Created March 2, 2020 14:15
Show Gist options
  • Save kmikko/34d7c31aa7c641942d001f143f65477b to your computer and use it in GitHub Desktop.
Save kmikko/34d7c31aa7c641942d001f143f65477b to your computer and use it in GitHub Desktop.
Disable non-breaking space in Wayland

Disable non-breaking space in Wayland

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.dconf

Open 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.dconf

Source:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment