added caps:none option
[xorg/xkeyboard-config] / symbols / srvr_ctrl
1 // $XKeyboardConfig$
2
3 // $XFree86: xc/programs/xkbcomp/symbols/srvr_ctrl,v 1.4 2003/12/18 14:14:38 pascal Exp $
4 //
5 // Actions which control the server's behavior
6
7 partial keypad_keys function_keys
8 xkb_symbols "xfree86" {
9     include "srvr_ctrl(stdkeypad)"
10     include "srvr_ctrl(fkey2vt)"
11 };
12
13 partial keypad_keys 
14 xkb_symbols "stdkeypad" {
15
16 // Ungrab cancels server/keyboard/pointer grabs
17     key <KPDV> {
18         type="CTRL+ALT",
19         symbols[Group1]= [ KP_Divide,   XF86_Ungrab ]
20     };
21
22 // ClsGrb kills whichever client has a grab in effect
23     key <KPMU> {
24         type="CTRL+ALT",
25         symbols[Group1]= [ KP_Multiply, XF86_ClearGrab ]
26     };
27
28 // -VMode switches to the previous video mode
29     key <KPSU> {
30         type="CTRL+ALT",
31         symbols[Group1]= [ KP_Subtract, XF86_Prev_VMode ]
32     };
33
34 // +VMode switches to the next video mode
35     key <KPAD> {
36         type="CTRL+ALT",
37         symbols[Group1]= [ KP_Add,      XF86_Next_VMode]
38     };
39
40 };
41
42 partial function_keys 
43 xkb_symbols "fkey2vt" {
44
45     key <FK01> {
46         type="CTRL+ALT",
47         symbols[Group1]= [ F1,  XF86_Switch_VT_1 ]
48     };
49
50     key <FK02> {
51         type="CTRL+ALT",
52         symbols[Group1]= [ F2,  XF86_Switch_VT_2 ]
53     };
54
55     key <FK03> {
56         type="CTRL+ALT",
57         symbols[Group1]= [ F3,  XF86_Switch_VT_3 ]
58     };
59
60     key <FK04> {
61         type="CTRL+ALT",
62         symbols[Group1]= [ F4,  XF86_Switch_VT_4 ]
63     };
64
65     key <FK05> {
66         type="CTRL+ALT",
67         symbols[Group1]= [ F5,  XF86_Switch_VT_5 ]
68     };
69
70     key <FK06> {
71         type="CTRL+ALT",
72         symbols[Group1]= [ F6,  XF86_Switch_VT_6 ]
73     };
74
75     key <FK07> {
76         type="CTRL+ALT",
77         symbols[Group1]= [ F7,  XF86_Switch_VT_7 ]
78     };
79
80     key <FK08> {
81         type="CTRL+ALT",
82         symbols[Group1]= [ F8,  XF86_Switch_VT_8 ]
83     };
84
85     key <FK09> {
86         type="CTRL+ALT",
87         symbols[Group1]= [ F9,  XF86_Switch_VT_9 ]
88     };
89
90     key <FK10> {
91         type="CTRL+ALT",
92         symbols[Group1]= [ F10, XF86_Switch_VT_10 ]
93     };
94
95     key <FK11> {
96         type="CTRL+ALT",
97         symbols[Group1]= [ F11, XF86_Switch_VT_11 ]
98     };
99
100     key <FK12> {
101         type="CTRL+ALT",
102         symbols[Group1]= [ F12, XF86_Switch_VT_12 ]
103     };
104
105 };
106
107 partial function_keys keypad_keys
108 xkb_symbols "no_srvr_keys" {
109
110     key.type="TWO_LEVEL";
111
112     key <FK01> { [ F1, F1 ]     };
113     key <FK02> { [ F2, F2 ]     };
114     key <FK03> { [ F3, F3 ]     };
115     key <FK04> { [ F4, F4 ]     };
116     key <FK05> { [ F5, F5 ]     };
117     key <FK06> { [ F6, F6 ]     };
118     key <FK07> { [ F7, F7 ]     };
119     key <FK08> { [ F8, F8 ]     };
120     key <FK09> { [ F9, F9 ]     };
121     key <FK10> { [ F10, F10 ]   };
122     key <FK11> { [ F11, F11 ]   };
123     key <FK12> { [ F12, F12 ]   };
124
125     key <KPDV> { [ KP_Divide,   KP_Divide       ] };
126     key <KPMU> { [ KP_Multiply, KP_Multiply     ] };
127     key <KPSU> { [ KP_Subtract, KP_Subtract     ] };
128     key <KPAD> { [ KP_Add,      KP_Add          ] };
129 };
130