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