在 Apple 键盘上,我最喜欢的 Linux 功能之一是,如果我按住Fn+ Left,它会触发Home按键、Fn+Right触发器End、Fn+Up触发器PageUp和Fn+Down触发器PageDown
这使得文本导航变得非常容易:无需离开主行,我就可以轻松浏览文档和行。
由于某些原因(触摸栏:'[),我将不再使用 Apple 硬件,现在我使用的是 ThinkPad X1 Yoga。我想重新映射许多按键,以反映 Apple 键盘上的情况。
这是我按下并释放按键的结果Fn:
KeyPress event, serial 53, synthetic NO, window 0x4400001,
root 0x13c, subw 0x0, time 110088308, (71,-372), root:(1262,292),
state 0x0, keycode 151 (keysym 0x1008ff2b, XF86WakeUp), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 53, synthetic NO, window 0x4400001,
root 0x13c, subw 0x0, time 110088318, (71,-372), root:(1262,292),
state 0x0, keycode 151 (keysym 0x1008ff2b, XF86WakeUp), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
按下并释放的结果如下Left:
KeyPress event, serial 53, synthetic NO, window 0x4400001,
root 0x13c, subw 0x0, time 110150520, (-320,-320), root:(871,344),
state 0x0, keycode 113 (keysym 0xff51, Left), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 53, synthetic NO, window 0x4400001,
root 0x13c, subw 0x0, time 110150591, (-320,-320), root:(871,344),
state 0x0, keycode 113 (keysym 0xff51, Left), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
最后,按下的结果如下Home:
KeyPress event, serial 53, synthetic NO, window 0x4400001,
root 0x13c, subw 0x0, time 110552974, (56,-93), root:(1247,571),
state 0x0, keycode 110 (keysym 0xff50, Home), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 53, synthetic NO, window 0x4400001,
root 0x13c, subw 0x0, time 110553021, (56,-93), root:(1247,571),
state 0x0, keycode 110 (keysym 0xff50, Home), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
我读到了很多关于xmodmap
和的相互矛盾的信息xkbcomp
。我不确定我必须做什么,但我想象这涉及到映射一条尚不存在的快捷方式。
我遗漏了什么以及我该如何继续?