Linux
嘗試使用 Xorg 配置設置鍵盤佈局,但它不起作用
我正在嘗試將我的 HP Pavilion g6 鍵盤佈局設置為英語(美國)和阿拉伯語(阿拉)。
我正在使用 Fedora 18,但無論如何都遵循了 Arch Wiki 。
這是我的
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)" }; };
還缺少什麼?到目前為止,佈局切換根本不起作用。
像這樣編輯你的
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