remapped my keyboard on my wrecked asus rog g14 which has mysteriously awaken to life after service told me to throw it away because the motherboard is borked to a bastard US/Austrian version and it works 😍
so we have the zy swap, the € on Lalt/3, the ß and the üöä in their respective AT keyboard positions with Lalt
yay
/usr/share/X11/xkb/symbols/us
// Austrian characters on Alt_L and ZY swap
partial alphanumeric_keys
xkb_symbols "us_at" {
include "us(basic)"
name[Group1] = "US / Austrian";
// Define Austrian characters with Alt_L and Shift Alt_L
key <AD11> { [ bracketleft, braceleft, udiaeresis, Udiaeresis ] };
key <AC10> { [ semicolon, colon, odiaeresis, Odiaeresis ] };
key <AC11> { [ apostrophe, quotedbl, adiaeresis, Adiaeresis ] };
key <AE03> { [ 3, numbersign, EuroSign ] };
key <AC02> { [ s, S, ssharp, section ] };
// Swap Y and Z
key <AD06> { [ z, Z, y, Y ] };
key <AB01> { [ y, Y, z, Z ] };
// Set Alt_L as the third-level modifier
//replace key <LALT> { [ ISO_Level3_Shift ] };
key <LALT> {
type[Group1] = "TWO_LEVEL",
[ ISO_Level3_Shift, Multi_key ]
};
};
and
setxkbmap -layout us -variant us_at -option ""
enjoy