Linux Ubuntu bionic xfce
localectl Actually, there was a way not to use xmodmap! Its name is ** localectl **!!!!!!!!! Win with this guy!
Setting example of US keyboard layout
localectl --no-convert set-x11-keymap us pc105 "" ctrl:swapcaps
Check the settings
System Locale: LANG=ja_JP.UTF-8 VC Keymap: n/a X11 Layout: us X11 Model: pc105 X11 Options: ctrl:swapcaps
It can also be edited and changed directly.
My key code is
--Caps_Lock is 66 --Control_L is 37
It was, so just replace it.
--Changed Caps_Lock to 37 --Changed Control_L to 66
keycode 37 = Caps_Lock keycode 66 = Control_L