# pc文件全文
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105" {
key <ESC> { [ Caps_Lock, grave ] };
// The extra key on many European keyboards:
key <LSGT> { [ less, greater, bar, brokenbar ] };
// The following keys are common to all layouts.
key <BKSL> { [ backslash, bar ] };
key <SPCE> { [ space ] };
include "srvr_ctrl(fkey2vt)"
include "pc(editing)"
include "keypad(x11)"
key <BKSP> { [ BackSpace, Delete ], [ Delete ] };
key <TAB> { [ Tab, ISO_Left_Tab ] };
key <RTRN> { [ Return ] };
key <CAPS> { [ Mode_switch ] };
key <NMLK> { [ Num_Lock ] };
key <LFSH> { [ Shift_L ] };
key <LCTL> { [ Control_L ] };
key <LWIN> { [ Super_L ] };
key <RTSH> { [ Shift_R ] };
key <RCTL> { [ Control_R ] };
key <RWIN> { [ Super_R ] };
key <MENU> { [ Menu ] };
// Beginning of modifier mappings.
modifier_map Shift { Shift_L, Shift_R };
modifier_map Lock { Caps_Lock };
modifier_map Control{ Control_L, Control_R };
modifier_map Mod2 { Num_Lock };
modifier_map Mod4 { Super_L, Super_R };
// Fake keys for virtual<->real modifiers mapping:
key <LVL3> { [ ISO_Level3_Shift ] };
// key <MDSW> { [ Mode_switch ] };
modifier_map Mod5 { <LVL3>, <MDSW> };
key <ALT> { [ NoSymbol, Alt_L ] };
include "altwin(meta_alt)"
key <META> { [ NoSymbol, Meta_L ] };
modifier_map Mod1 { <META> };
key <SUPR> { [ NoSymbol, Super_L ] };
modifier_map Mod4 { <SUPR> };
key <HYPR> { [ NoSymbol, Hyper_L ] };
modifier_map Mod4 { <HYPR> };
// End of modifier mappings.
key <OUTP> { [ XF86Display ] };
key <KITG> { [ XF86KbdLightOnOff ] };
key <KIDN> { [ XF86KbdBrightnessDown ] };
key <KIUP> { [ XF86KbdBrightnessUp ] };
};
hidden partial alphanumeric_keys
xkb_symbols "editing" {
key <PRSC> {
type= "PC_ALT_LEVEL2",
symbols[Group1]= [ Print, Sys_Req ]
};
key <SCLK> { [ Scroll_Lock ] };
key <PAUS> {
type= "PC_CONTROL_LEVEL2",
symbols[Group1]= [ Pause, Break ]
};
key <INS> { [ Insert ] };
key <HOME> { [ Home ] };
key <PGUP> { [ Prior ] };
key <DELE> { [ Delete ] };
key <END> { [ End ] };
key <PGDN> { [ Next ] };
key <UP> { [ Up ] };
key <LEFT> { [ Left ] };
key <DOWN> { [ Down ] };
key <RGHT> { [ Right ] };
};
# us文件前58行, 其余部分全部不动
default partial alphanumeric_keys modifier_keys
xkb_symbols "basic" {
name[Group1]= "English (US)";
key <TLDE> { [ Escape, asciitilde ] };
// key <TLDE> { [ grave, asciitilde ] };
key <AE01> { [ 1, exclam ], [ F1 ] };
key <AE02> { [ 2, at ], [ F2 ] };
key <AE03> { [ 3, numbersign ], [ F3 ] };
key <AE04> { [ 4, dollar ], [ F4 ] };
key <AE05> { [ 5, percent ], [ F5 ] };
key <AE06> { [ 6, asciicircum ], [ F6 ] };
key <AE07> { [ 7, ampersand ], [ F7 ] };
key <AE08> { [ 8, asterisk ], [ F8 ] };
key <AE09> { [ 9, parenleft ], [ F9 ] };
key <AE10> { [ 0, parenright ], [ F10 ] };
key <AE11> { [ minus, underscore ], [ F11 ] };
key <AE12> { [ equal, plus ], [ F12 ] };
key <AD01> { [ q, Q ] };
key <AD02> { [ w, W ] };
key <AD03> { [ e, E ] };
key <AD04> { [ r, R ] };
key <AD05> { [ t, T ] };
key <AD06> { [ y, Y ], [ Home ] };
key <AD07> { [ u, U ], [ Prior ] };
key <AD08> { [ i, I ], [ Insert ] };
key <AD09> { [ o, O ], [ End ] };
key <AD10> { [ p, P ], [ Prior ] };
key <AD11> { [ bracketleft, braceleft ], [ asciicircum ] };
key <AD12> { [ bracketright, braceright ], [ dollar ] };
key <AC01> { [ a, A ] };
key <AC02> { [ s, S ] };
key <AC03> { [ d, D ], [ BackSpace ] };
key <AC04> { [ f, F ], [ Delete ] };
key <AC05> { [ g, G ] };
key <AC06> { [ h, H ], [ Left ] };
key <AC07> { [ j, J ], [ Down ] };
key <AC08> { [ k, K ], [ Up ] };
key <AC09> { [ l, L ], [ Right ] };
key <AC10> { [ semicolon, colon ], [ Next ] };
key <AC11> { [ apostrophe, quotedbl ], [ 0 ] };
key <AB01> { [ z, Z ] };
key <AB02> { [ x, X ] };
key <AB03> { [ c, C ], [ Escape ] };
key <AB04> { [ v, V ] };
key <AB05> { [ b, B ] };
key <AB06> { [ n, N ], [ NoSymbol ] };
key <AB07> { [ m, M ], [ Return ] };
key <AB08> { [ comma, less ], [ NoSymbol ] };
key <AB09> { [ period, greater ], [ NoSymbol ] };
key <AB10> { [ slash, question ], [ NoSymbol ] };
key <BKSL> { [ backslash, bar ] };
};
网友评论