I use a keyboard with an american layout because I find it much much better for programming. However, since I’m portuguese, I want to use some characters that don’t exist in the american layout, such as á
, é
or ç
. In windows I selected the US international layout with with dead keys and I could do everything.
'
+a
=á
'
+c
=ç
The US International with dead keys on linux mostly works but has some weird problems, or different behavior:
-
'
+s
=ś
, I expected it to be's
. Ś doesn’t exist in my regional dictionary. It is a problem when typingIt's
, which is transformed intoitś
. I could perform a space after pressing'
and it works, but I’m just not accustomed to do that. -
'
+m
=ḿ
, same problem as before. -
'
+c
=ć
, I expected it to beç
-
'
+t
=´t
, I expected it to be't
I found a workaround for the cedilla, that works on most apps but not on all. Is there a way to change this behavior system-wide? Maybe I can create my own “custom layout”?
EDIT: of course right after I post this I finally find a solution. I love that it’s just a dot file I can bring with me anywhere. Gonna leave the post up anyway, in case anyone ever has the same problem.
Well, right after posting I found a working solution. Doh!
Solution here, works great.
I use imput remapper for editing behavior of my input devices on my wayland gnome setup. I only changed the right super to behave like the left super and my legacy apple mouse to trigger super_L if squeeze it. I think it could help you as well with your problem, but you have to check, if it can remap key combinations to foreign signs, not so sure about that. https://github.com/sezanzeb/input-remapper
For Xorg there is something called xkb. I don’t have experience in that. https://en.m.wikipedia.org/wiki/X_keyboard_extension