After extensive search, I've only found guides to remap/swap Caps Lock to something like Control. However, I am trying to make Caps Lock another Enter (to be precise, I want it for one-handed 'Run' in Rstudio).
It seems that the XKB-options only allow very specific commands that can be found by:
man 7 xkeyboard-config
These options are also the ones that most tweak tools allow. Is there any more powerful option, that allows remapping Caps Lock to an arbitrary key, in particular Enter, or should I give up my search?
Best Answer
First You can search for replacements keycodes in your case via following command in terminal:
You can get all keycodes according to keys by command
xmodmap -pke
.So, Run following command (to get Caps-Lock Work as Enter Key):
(Then you can set/assign suitable key to keycode by command
xmodmap -e
)