在 Ubuntu 中重新映射脚踏板

在 Ubuntu 中重新映射脚踏板

我有一个基本的带有两个按钮的脚踏板,我想设置它来模仿ControlSuper

xmodmap我以前用过xev,按照建议在此答案中。

但事实证明,脚踏板的按钮目前已映射到ac,系统无法区分踏板和键盘的输入。因此,当我重新映射a到时Control,它也会重新映射我的键盘。(我在连接了外接键盘的笔记本电脑上工作)

下面您可以找到xev外部键盘和脚踏板的输出。有任何想法吗? :)


键盘A

KeyPress event, serial 37, synthetic NO, window 0x5400001, root 0xd8, subw 0x0, time 2976167, (-463,316), root:(561,368), state 0x10, keycode 38 (keysym 0x61, a), same_screen YES, XLookupString gives 1 bytes: (61) "a" XmbLookupString gives 1 bytes: (61) "a" XFilterEvent returns: False KeyRelease event, serial 37, synthetic NO, window 0x5400001, root 0xd8, subw 0x0, time 2976232, (-463,316), root:(561,368), state 0x10, keycode 38 (keysym 0x61, a), same_screen YES, XLookupString gives 1 bytes: (61) "a" XFilterEvent returns: False

脚踏板A

KeyPress event, serial 37, synthetic NO, window 0x5400001, root 0xd8, subw 0x0, time 3114112, (-172,78), root:(852,130), state 0x10, keycode 38 (keysym 0x61, a), same_screen YES, XLookupString gives 1 bytes: (61) "a" XmbLookupString gives 1 bytes: (61) "a" XFilterEvent returns: False KeyRelease event, serial 37, synthetic NO, window 0x5400001, root 0xd8, subw 0x0, time 3114408, (-172,78), root:(852,130), state 0x10, keycode 38 (keysym 0x61, a), same_screen YES, XLookupString gives 1 bytes: (61) "a" XFilterEvent returns: False

相关内容