I am a Spanish native speaker so I use a lot the “ñ” letter… The problem is that I’m living in Germany, which implies QWERTZ keyboards, so in the place of the “ñ”, I have an “ö”…
Right now is configured to have both layouts, one in Spanish and one in German, which I change using the Home + Space shortcut and is changing only in one App but is still kind of annoying, since now is 5 keys I have to press instead of 2 to write one letter → Home + Space + Ö ++ Home + Space [the non-letter/non-numeric symbols also change, so it gets confusing leaving it in Spanish]
I’m relatively new to Fedora and in Ubuntu I used to change the “de” file in the X11 folder to add the “ñ” when pressing AltGr + N, which was the perfect solution, since it allowed me to have a Spanish and German keyboard together, sacrificing the ” symbol. However, I don’t mind, since I still have Mayus + 2 (->"<- instead of ->”<-)… It doesn’t seem to work on Fedora…
I have also tried dumping the current keyboard map to a new file in my home directory with
xmodmap -pke > ~/.xmodmap
to change that file and import the modified keymap with
xmodmap ~/.xmodmap
which works… Till I reboot or upgrade.
I also tried with xkeycaps but didn’t work and when trying to uninstall my GUI crashed
You should be able to achieve this while pressing the tilde ~ and then the n = ñ
For the ä ö ü i use the ¨ + a o u on a default Portugues_BR Keyboard.
If you give us more information like inxi -Fzx (use command in terminal) and post the output here as </> pre-formated text, we will be able to see which environment you are using and where you could make the changes you are looking for.
When I do that I get “~n” … But I would also find that a great solution…
Is really similar to that one but not specifically. Mine doesn’t have two buttons between AltGr and Stgr and has also a numerical section… Is more like this one but the Fn Keys are just a bit different…
The remapping actually works but “ñ” is not included as a recognized symbol so I tried to follow their instructions on emitting unavailable symbols but they don’t work for me (I guess because I’m using Fedora?), it just won’t write anything… When I change it to spanish it actually works so I thought maybe if I set the mapping to:
it would do it but it doesn’t, neither with ntilde instead of odiaeresis. The first line is not actually changing the input source, instead it adds a space (that’s the reason of the BackSpace in the second line).
Funny fact: I started writing this reply as the answer because I thought for about half an hour that I did it but while writing I noticed that the symbols were all changed and that it was actually configured to Spanish
Ok, the answer to my problem was actually easy… So easy that I feel a bit ashamed, haha! Is was just Settings → Keyboard and in Input Sources changing the keyboard layout to German (dead tilde) and now I can press AltGr + “+” and I get ~ to compose ñ…
Should I mark this as the solution, erase the question or what? I’m a bit confused, since the question was somehow answered with the different tools that didn’t work for the specific character Ñ and the answer I found is actually not answering the question I posted…