重新映射 Escape = Caps_Lock、Caps_Lock = Ctrl_L 和 Ctrl_L = Caps_Lock

重新映射 Escape = Caps_Lock、Caps_Lock = Ctrl_L 和 Ctrl_L = Caps_Lock

我想使用 xmodmap 交换按键,如标题所示。我想将无用的 capslock 绑定到退出键,将退出功能绑定到左下角的控件,将 ctrl 绑定到 caps lock。我试过这个

remove Lock = Caps_Lock
remove Control = Control_L

keysym Caps_Lock = Control_L 
keysym Control_L = Escape
keysym Escape = Caps_Lock

add Lock = Caps_Lock
add Control = Control_L 

但它不起作用,我不知道为什么。

相关内容