I would like to write symbols ñ (ntilde) and Ñ (Ntilde) on a British keyboard using
AltGr + n and
AltGr + Shift + N.
I have modified the keymap with xmodmap:
$ xmodmap -e "keysym n = n N ntilde Ntilde"
and it seems to be correct:
$ xmodmap -pke | grep "Ntilde" keycode 57 = n N ntilde Ntilde $
However, nothing appears on screen when I press
AltGr + n or
AltGr + Shift + N (on any application).
What am I missing?
- The problem seems to occur in Ubuntu 16.04 LTS. I used xmodmap successfully on Ubuntu 12.04 LTS.
- I have tried two different keyboard settings: English (UK, extended WinKeys) and English (UK, international with dead keys).
- Following a comment, I also tried English (USA, international with dead keys): the accented letters (such as á) worked but the ntilde and Ntilde did not.
PS: I am happy to write those letters in other ways too, so answers pointing to alternative ways are also welcome, but this question focuses on the use of
xmodmap because I have used it successfully in past Ubuntu distros.