I had a neat little hack to get German "Umlaute" on a US ANSI keyboard with XModap. When I hold Caps-Lock, I get Umlaute in the places where they are on a German keyboard. Here my .Xmodmap file
remove Lock = Caps_Lock keycode 66 = Mode_switch keycode 26 = e E EuroSign cent keycode 30 = u U udiaeresis Udiaeresis keycode 34 = bracketleft braceleft udiaeresis Udiaeresis keycode 47 = semicolon colon odiaeresis Odiaeresis keycode 32 = o O odiaeresis Odiaeresis keycode 48 = apostrophe quotedbl adiaeresis Adiaeresis keycode 38 = a A adiaeresis Adiaeresis keycode 20 = minus underscore ssharp ssharp keycode 39 = s S ssharp keycode 106 = Shift_R
Ever since I switched to Wayland/sway this does not work any more and I currently only see the option to do this in XKB. I could not figure out:
- how do I make Caps-Lock not "sticky"?
- how do I add the needed Level 3 to a given key?