Fedora键盘布局的配置在 /etc/X11/xorg.conf.d/00-keyboard.conf文件中,如果没有该文件,则在/etc/X11/xorg.conf中,如下:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
EndSection
或者
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "keyboard"
EndSection
添加
"XkbModel" "pc105"
"XkbLayout" "us"
即可。
当然也可以用loadkeys命令,把该命令写在/etc/gdm/custom.conf文件的末尾,如下:
loadkeys us
即可。也有人用 loadkeys br-abnt2 使用巴西的键盘布局,跟美国是一样的。下面是参考值:
keyboard: Keyboard instance, containing members:
info:{'KEYBOARDTYPE': pc, 'KEYTABLE': us}
modelDict:{'gr': ['Greek', 'el', 'pc102', ''], 'speakup': ['Speakup', 'us','pc105', ''], 'ru-cp1251': ['Russian (cp1251)', 'ru', 'pc102', ''],'speakup-lt': ['Speakup (laptop)', 'us', 'pc105', ''], 'cf':['French Canadian', 'ca_enhanced', 'pc102', ''], 'se-latin1':['Swedish', 'se', 'pc102', ''], 'fr_CH-latin1': ['Swiss French(latin1)', 'fr_CH', 'pc102', ''], 'fr-pc': ['French (pc)', 'fr','pc102', ''], 'ru-ms': ['Russian (Microsoft)', 'ru', 'pc102', ''],'sk-qwerty': ['Slovakian', 'sk_qwerty', 'pc102', ''], 'ru2':['Russian (ru2)', 'ru', 'pc102', ''], 'et': ['Estonian', 'ee','pc102', ''], 'ru1': ['Russian (ru1)', 'ru', 'pc102', ''], 'es':['Spanish', 'es', 'pc102', ''], 'it-ibm': ['Italian (IBM)', 'it','pc102', ''], 'ru': ['Russian', 'ru', 'pc102', ''], 'fr-latin1':['French (latin1)', 'fr', 'pc102', ''], 'no': ['Norwegian', 'no','pc102', ''], 'de-latin1-nodeadkeys': ['German (latin1 w/ nodeadkeys)', 'de', 'pc102', 'nodeadkeys'], 'ru_win': ['Russian(win)', 'ru', 'pc105', ''], 'ua': ['Ukrainian', 'ua', 'pc102', ''],'pt-latin1': ['Portuguese', 'pt', 'pc102', ''], 'it': ['Italian','it', 'pc102', ''], 'de-latin1': ['German (latin1)', 'de', 'pc102',''], 'fr': ['French', 'fr', 'pc102', ''], 'pl': ['Polish', 'pl','pc102', ''], 'cz-lat2': ['Czechoslovakian', 'cz', 'pc102', ''],'dk-latin1': ['Denmark (latin1)', 'dk', 'pc102', ''], 'bg':['Bulgarian', 'bg', 'pc102', ''], 'dk': ['Denmark', 'dk', 'pc102',''], 'be-latin1': ['Belgian (be-latin1)', 'be', 'pc102', ''],'sg-latin1': ['Swiss German (latin1)', 'de_CH', 'pc102', ''],'fr-latin0': ['French (latin0)', 'fr', 'pc102', ''], 'de':['German', 'de', 'pc102', ''], 'hu': ['Hungarian', 'hu', 'pc102',''],
'jp106': ['Japanese', 'jp', 'jp106',''], 'us-acentos': ['U.S. International', 'us_intl','pc105', ''], 'fr_CH': ['Swiss French', 'fr_CH', 'pc102', ''],'fi': ['Finnish', 'fi', 'pc102', ''], 'dvorak': ['Dvorak','dvorak', 'pc105', ''], 'it2': ['Italian (it2)', 'it', 'pc102',''], 'fi-latin1': ['Finnish (latin1)', 'fi', 'pc102', ''],'ro_win': ['Romanian', 'ro', 'pc102', ''], 'hu101': ['Hungarian(101 key)', 'hu', 'pc102', ''], 'slovene': ['Slovenian', 'si','pc102', ''],
'br-abnt2': ['Brazilian (ABNT2)', 'br', 'abnt2',''],
'us': ['U.S. English', 'us', 'pc105',''], 'no-latin1': ['Norwegian (latin1)', 'no', 'pc102',''], 'is-latin1': ['Iceland', 'is', 'pc102', ''], 'cz-us-qwertz':['Czechoslovakian (qwertz)', 'cz', 'pc102', ''], 'uk': ['UnitedKingdom', 'gb', 'pc101', ''], 'trq': ['Turkish', 'tr', 'pc102',''], 'sg': ['Swiss German', 'de_CH', 'pc102', '']}