Compose / umlauts on US keyboard

Indeed, I forgot to include this symbol file in the system image. But here it is! Just paste this into a new file ~/.xkb/symbols/us-german-umlaut:

default partial alphanumeric_keys
xkb_symbols "basic" {
	include "us(altgr-intl)"
	include "level3(caps_switch)"
	name[Group1] = "English (US, international with German umlaut)";
	key <AD03> { [ e, E, EuroSign, cent ] };
	key <AD07> { [ u, U, udiaeresis, Udiaeresis ] };
	key <AD09> { [ o, O, odiaeresis, Odiaeresis ] };
	key <AC01> { [ a, A, adiaeresis, Adiaeresis ] };
	key <AC02> { [ s, S, ssharp ] };
};

This is activated by the following line in .config/sway/config:

input "1003:8258:MNT_Reform_Keyboard" xkb_layout us-german-umlaut
1 Like