Under Xorg, I used ~/.Xmodmap
in order to be able to type amongst others a German Umlaut (i.e., äüö) using the right Ctrl
key and a
, u
, o
, respectively (as well as Shift
for capitals):
remove Control = Control_R
keycode 105 = Mode_switch
keysym e = e E EuroSign
keysym c = c C cent
keysym a = a A adiaeresis Adiaeresis
keysym o = o O odiaeresis Odiaeresis
keysym u = u U udiaeresis Udiaeresis
keysym s = s S ssharp
I haven't found a way to achieve the same under Wayland using xkb
. So far, I've only managed to set my keyboard variant to altgr-intl
, which then lets me use right Alt
+ q
, for example, to get an ä.
Since I'm also using Sway, I can't use Alt
+ Shift
+ q
though for the capital version, because in Sway this is the shortcut to closing a window - and I don't want to remap this.
So, how do I go about putting Umlauts to right-Ctrl
+ a
, u
, o
, respectively, as I've had it before under Xorg?