我正在尝试将 HP Pavilion g6 键盘布局设置为英语(美国)和阿拉伯语(阿拉)。
我正在使用 Fedora 18,但遵循拱门维基无论如何。
这是我的90-keyboard-layout.conf
文件:
Section "InputClass"
Identifier "keyboard"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,ara(qwerty_digits)"
Option "XkbVariant" "qwerty_digits,qwerty_digits"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection
我之所以输入,是pc105
因为我不知道XkbModel
我的 HP Pavilion g6 键盘对应的是什么(查看过/usr/share/X11/xkb/rules/xorg
但没有找到)。
我还有这个文件,00-anaconda-keyboard.conf
其中包含:
#This file was generated by the Anaconda installer
Section "InputClass"
Identifier "keyboard"
MatchIsKeyboard "on"
Option "XkbOptions" "terminate:ctrl_alt_bksp,"
EndSection
Section "ServerFlags"
Option "DontZap" "false"
EndSection
这是我的setxkbmap -print
:
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us(qwerty_digits)+ara(qwerty_digits)(qwerty_digits):2+inet(evdev)+group(alt_shift_toggle)+terminate(ctrl_alt_bksp)" };
xkb_geometry { include "pc(pc104)" };
};
还缺少什么?到目前为止,布局切换根本不起作用。
答案1
90-keyboard-layout.conf
像这样编辑你的:
Section "InputClass"
Identifier "keyboard"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbModel" "evdev"
Option "XkbLayout" "us,ara"
Option "XkbVariant" ",qwerty_digits"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection