I have the file /etc/X11/xorg.conf.d/00-keyboard.conf
:
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "it"
Option "XkbOptions" "caps:swapescape"
EndSection
I have switched to Wayland and, if I’m not missing something, it still works: my caps and escape are swappeed.
Shouldn’t it be a X11 file? (/etc/X11)