added caps:none option
[xorg/xkeyboard-config] / symbols / pc
1 // $XKeyboardConfig$
2
3 //
4 // $XFree86: xc/programs/xkbcomp/symbols/pc,v 1.9 2003/06/09 19:59:46 dawes Exp $
5
6 default partial alphanumeric_keys modifier_keys 
7 xkb_symbols "pc105" {
8
9     key <ESC>  {        [ Escape                        ]       };
10
11     // the extra key on most European keyboards
12     key <LSGT> {        [      less,    greater,          bar,    brokenbar ]   };
13
14     // these keys are common to all layouts
15     key <BKSL> {        [ backslash,    bar             ]       };
16     key <SPCE> {        [        space                  ]       };
17
18     include "pc(function)"
19     include "pc(editing)"
20     include "keypad(x11)"
21
22     key <BKSP> {        [ BackSpace     ]       };
23
24     key  <TAB> {        [ Tab,  ISO_Left_Tab    ]       };
25     key <RTRN> {        [ Return        ]       };
26
27     key <CAPS> {        [ Caps_Lock     ]       };
28
29     key <NMLK> {        [ Num_Lock, Pointer_EnableKeys          ]       };
30
31     key <LFSH> {        [ Shift_L       ]       };
32     key <LCTL> {        [ Control_L     ]       };
33
34     key <LWIN> {        [ Super_L                       ]       };
35     modifier_map Mod4   { <LWIN> };
36
37     key <RTSH> {        [ Shift_R       ]       };
38     key <RCTL> {        [ Control_R     ]       };
39
40     key <RWIN> {        [ Super_R                       ]       };
41     modifier_map Mod4   { <RWIN> };
42
43     key <MENU> {        [ Menu                  ]       };
44
45     // begin modifier mappings
46     modifier_map Shift  { Shift_L, Shift_R };
47     modifier_map Lock   { Caps_Lock, ISO_Lock };
48     modifier_map Control{ Control_L, Control_R };
49     modifier_map Mod2   { Num_Lock };
50
51     //  Fake keys for virtual<->real modifiers mapping 
52     key <LVL3> {        [ ISO_Level3_Shift      ]       };
53     key <MDSW> {        [ Mode_switch           ]       };
54     modifier_map Mod5   { <LVL3>, <MDSW> };
55
56     key <ALT>  {        [ NoSymbol, Alt_L       ]       };
57     include "altwin(meta_alt)"
58
59     key <META> {        [ NoSymbol, Meta_L      ]       };
60     modifier_map Mod1   { <META> };
61
62     key <SUPR> {        [ NoSymbol, Super_L     ]       };
63     modifier_map Mod4   { <SUPR> };
64
65     key <HYPR> {        [ NoSymbol, Hyper_L     ]       };
66     modifier_map Mod4   { <HYPR> };
67
68     key <OUTP> { [ XF86Display ] };
69     key <KITG> { [ XF86KbdLightOnOff ] };
70     key <KIDN> { [ XF86KbdBrightnessDown ] };
71     key <KIUP> { [ XF86KbdBrightnessUp ] };
72 };
73
74 partial hidden alphanumeric_keys
75 xkb_symbols "function" {
76     key <FK01> {
77         type="CTRL+ALT",
78         symbols[Group1]= [ F1,  XF86_Switch_VT_1 ]
79     };
80     key <FK02> {
81         type="CTRL+ALT",
82         symbols[Group1]= [ F2,  XF86_Switch_VT_2 ]
83     };
84     key <FK03> {
85         type="CTRL+ALT",
86         symbols[Group1]= [ F3,  XF86_Switch_VT_3 ]
87     };
88     key <FK04> {
89         type="CTRL+ALT",
90         symbols[Group1]= [ F4,  XF86_Switch_VT_4 ]
91     };
92     key <FK05> {
93         type="CTRL+ALT",
94         symbols[Group1]= [ F5,  XF86_Switch_VT_5 ]
95     };
96     key <FK06> {
97         type="CTRL+ALT",
98         symbols[Group1]= [ F6,  XF86_Switch_VT_6 ]
99     };
100     key <FK07> {
101         type="CTRL+ALT",
102         symbols[Group1]= [ F7,  XF86_Switch_VT_7 ]
103     };
104     key <FK08> {
105         type="CTRL+ALT",
106         symbols[Group1]= [ F8,  XF86_Switch_VT_8 ]
107     };
108     key <FK09> {
109         type="CTRL+ALT",
110         symbols[Group1]= [ F9,  XF86_Switch_VT_9 ]
111     };
112     key <FK10> {
113         type="CTRL+ALT",
114         symbols[Group1]= [ F10, XF86_Switch_VT_10 ]
115     };
116     key <FK11> {
117         type="CTRL+ALT",
118         symbols[Group1]= [ F11, XF86_Switch_VT_11 ]
119     };
120     key <FK12> {
121         type="CTRL+ALT",
122         symbols[Group1]= [ F12, XF86_Switch_VT_12 ]
123     };
124 };
125
126 partial hidden alphanumeric_keys
127 xkb_symbols "editing" {
128     key <PRSC> {
129         type= "PC_ALT_LEVEL2",
130         symbols[Group1]= [ Print, Sys_Req ]
131     };
132     key <SCLK> {  [  Scroll_Lock        ]       };
133     key <PAUS> {
134         type= "PC_CONTROL_LEVEL2",
135         symbols[Group1]= [ Pause, Break ]
136     };
137     key  <INS> {        [  Insert               ]       };
138     key <HOME> {        [  Home                 ]       };
139     key <PGUP> {        [  Prior                ]       };
140     key <DELE> {        [  Delete               ]       };
141     key  <END> {        [  End                  ]       };
142     key <PGDN> {        [  Next                 ]       };
143
144     key   <UP> {        [  Up                   ]       };
145     key <LEFT> {        [  Left                 ]       };
146     key <DOWN> {        [  Down                 ]       };
147     key <RGHT> {        [  Right                ]       };
148 };
149