quinoa42
2019-01-15 10:58:20 +08:00
archlinux 的 wiki 上给了好多种方案,有复杂的有简单的,我比较偷懒(又不是特别懒)就用的 Xmodmap
不如转型.Xmodmap 分享帖吧,我的:
```
! mac-like trackpad
pointer = 1 2 3 5 4 7 6 8 9 10
! capslock -> ctrl, l_ctrl-> hyper, shift+capslock -> capslock
clear lock
clear control
clear mod1
clear mod2
clear mod3
clear mod4
clear mod5
keycode 37 = Hyper_L
keycode 66 = Control_L Caps_Lock
add control = Control_L Control_R
add mod1 = Alt_L Meta_L
add mod2 = Num_Lock
add mod3 = Hyper_L
add mod4 = Super_L Super_R
add mod5 = Mode_switch ISO_Level3_Shift
! R_alt -> escape
keycode 108 = Escape NoSymbol Escape
```
代码到处抄的加上自己改了改,自用用 vim 挺顺手的