我想使用setxkbmap创建和设置自定义键盘布局。我~/.xkb/prog
使用以下内容创建了一个文件:
partial default alphanumeric_keys
xkb_symbols "basic" {
include "latin(type4)"
name[Group1]="es for developers";
key <AE01> {[ 1, exclam, exclamdown, bar ]};
key <AD03> {[ e, E, EuroSign, sterling ]};
key <AB06> {[ n, N, ntilde, Ntilde ]};
key <AB07> {[ m, M, mu, mu ]};
key <AB10> {[ slash, question, questiondown, dead_hook ]};
include "level3(ralt_switch)"
};
而且我尝试用加载它setxkbmap -I$HOME/.xkb "prog"
,但出现“加载新键盘说明错误”
我也尝试过使用setxkbmap -I$HOME/.xkb "prog" -print | xkbcomp -I$HOME/.xkb - $DISPLAY
,但出现此错误:“找不到包含符号的文件“ prog”