我刚刚开始运行 Linux Mint,然而我使用的键盘硬件略有不同。
一开始它有很多问题,比如 Shift 映射错误,星号/星号根本没有映射,不过我已设法使用 XModMap 修复了这些问题。
xmodmap -e "keycode 50 = less greater backslash"
我的键盘映射是否为键码 50,前两个可以工作,但反斜杠不工作,我尝试重复反斜杠几次来修复它,但没能修复它。
Xev 输出编辑
KeyPress event, serial 270, synthetic NO, window 0x3200001,
root 0xd4, subw 0x0, time 9366403, (859,242), root:(1128,662),
state 0x90, keycode 50 (keysym 0x3c, less), same_screen YES,
XLookupString gives 1 bytes: (3c) "<"
XmbLookupString gives 1 bytes: (3c) "<"
XFilterEvent returns: False
KeyRelease event, serial 270, synthetic NO, window 0x3200001,
root 0xd4, subw 0x0, time 9366483, (859,242), root:(1128,662),
state 0x91, keycode 50 (keysym 0x3e, greater), same_screen YES,
XLookupString gives 1 bytes: (3e) ">"
XFilterEvent returns: False
KeyRelease event, serial 270, synthetic NO, window 0x3200001,
root 0xd4, subw 0x0, time 9366523, (859,242), root:(1128,662),
state 0x90, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XKeysymToKeycode returns keycode: 92
XLookupString gives 0 bytes:
XFilterEvent returns: False