I've been using this .Xmodmap for years but now I'm switching to Wayland and I need to replace it:
!remove Lock = Caps_Lock
keycode 66 = Mode_switch
keycode 108 = Mode_switch
keycode 26 = e E EuroSign cent
keycode 30 = u U udiaeresis Udiaeresis
keycode 32 = o O odiaeresis Odiaeresis
keycode 38 = a A adiaeresis Adiaeresis
keycode 39 = s S ssharp
The .Xmodmap above disables Caps-Lock and for example pressing Caps-Lock + u results in an ü. It is a slightly modified version of this.
I tried to do it on my own and came up with something like this which doesn't work :(
partial modifier_keys
xkb_symbols "caps_lock" {
key <CAPS> {
type[Group1] = "MODIFIER_LOCK",
modifiers = "Control",
control = "Control_L",
lock = "Caps Lock"
};
};
partial keys
xkb_symbols "my_layout" {
key <AE01> { [ e, E, EuroSign, cent ] };
key <AE02> { [ u, U, udiaeresis, Udiaeresis ] };
key <AE03> { [ o, O, odiaeresis, Odiaeresis ] };
key <AE04> { [ a, A, adiaeresis, Adiaeresis ] };
key <AE05> { [ s, S, ssharp ] };
};
partial xkb_layouts "my_layout" {
xkb_symbols "default" {
include "us"
include "caps_lock"
include "keys(my_layout)"
};
};
Can someone point me in the right direction?