My A key is broken, so I want to remap Caps Lock to A.This is an unusual remapping, so none of the built-in setxkbmap options (like caps:escape) covers it. I'm also on Wayland so I can't use xmodmap.Instead, I tried to directly edit /usr/share/X11/xkb/symbols/pc, replacingkey <CAPS> {        [ Caps_Lock             ]       };withkey <CAPS> {        [ A                     ]       };This almost works. The problem is that when I press Caps Lock, it sends not one but two A key presses.How can I fix this? Note that this is not a Wayland bug; the same thing happens under X.
Remap Caps Lock to A without sending letter twice
keyboard;xkb;wayland