我一直在使用它.Xmodmap
来配置我的自定义键盘映射。
我知道 Ubuntu 使用xkb
,但xkb
似乎非常复杂(继承和大量文件来配置某些东西)。
我设法让所有键都起作用.Xmodmap
,除了反斜杠。我真的不知道 xkb 的某些规则是否会以某种方式覆盖反斜杠。
我希望反斜杠Alt + keycode 49
我添加了以下规则.Xmodmap
keycode 49 = less greater backslash backslash backslash
但是,反斜杠没有生成。我猜它可能被xkb
某种方式覆盖了。您知道如何让它工作吗?分别来说,我可能需要在哪些地方进行一些更改xkb
?
如果我运行,则会得到以下结果:setxkbmap -print -verbose 10
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules: evdev
model: pc105
layout: ch,us
variant: de_mac,
options: caps:swapescape
Trying to build keymap using the following components:
keycodes: evdev+aliases(qwerty)
types: complete
compat: complete
symbols: pc+ch(de_mac)+us:2+inet(evdev)+capslock(swapescape)
geometry: pc(pc105)
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+ch(de_mac)+us:2+inet(evdev)+capslock(swapescape)" };
xkb_geometry { include "pc(pc105)" };
};