togglefullscreen action from Joaquin Aguirrezabalaga
[mikachu/openbox.git] / data / rc.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3      xml Schema for the openbox windowmanager configuration file
4
5      Changes:
6      Son Aug 10 15:49:10 CEST 2003 - pch(a)myzel.net
7          restrictions added, up to current format
8      Don Aug 14 21:10:27 CEST 2003 - pch(a)myzel.net
9          up to current (from action.c,config.c)
10      Don Aug 21 23:07:30 CEST 2003 - pch(a)myzel.net
11          new element - follow
12      Mon Sep  1 00:57:55 CEST 2003 - pch(a)myzel.net
13          up to alpha7
14      Mit Sep  3 12:40:10 CEST 2003 - pch(a)myzel.net
15          up to alpha8, a little documentation
16      Mon Sep  8 11:52:07 CEST 2003 - pch(a)myzel.net
17          up to cvs 1.12
18      Mon Sep 15 14:27:42 CEST 2003 - pch(a)myzel.net
19          up to cvs 1.14
20      Die Sep 16 20:56:37 CEST 2003 - pch(a)myzel.net
21          use a namespace
22      Fri Sep 19 14:36:33 EDT 2003 - xor(a)orodu.net
23          use openbox.org for namespace
24      Mon Sep 22 02:34:53 EDT 2003 - xor(a)orodu.net
25          add the focusLast and raiseOnFocus options
26          fix some capitalization
27      Mon Sep 22 14:08:16 EDT 2003 - xor(a)orodu.net
28          update hideTimeout to hideDelay
29      Thu Apr 22 12:33:11 UTC 2004 - mikachu(a)openbox.org
30          add diffs between 3.1 and 3.2
31 -->
32 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
33     targetNamespace="http://openbox.org/"
34     xmlns:ob="http://openbox.org/"
35     elementFormDefault="qualified">
36     <!--
37          root node
38       -->
39     <xs:element name="openbox_config">
40         <xs:annotation>
41             <xs:documentation>all these elements are expected in a openbox config file</xs:documentation>
42         </xs:annotation>
43         <xs:complexType>
44             <xs:sequence>
45                 <xs:element name="resistance" type="ob:resistance"/>
46                 <xs:element name="focus" type="ob:focus"/>
47                 <xs:element name="placement" type="ob:placement"/>
48                 <xs:element name="theme" type="ob:theme"/>
49                 <xs:element name="desktops" type="ob:desktops"/>
50                 <xs:element name="resize" type="ob:resize"/>
51                 <xs:element name="dock" type="ob:dock"/>
52                 <xs:element name="keyboard" type="ob:keyboard"/>
53                 <xs:element name="mouse" type="ob:mouse"/>
54                 <xs:element name="menu" type="ob:menu"/>
55             </xs:sequence>
56         </xs:complexType>
57     </xs:element>
58     <!--
59          complex types
60       -->
61     <xs:complexType name="resistance">
62         <xs:annotation>
63             <xs:documentation>defines behaviour of windows when close to eachother or the screen edge</xs:documentation>
64         </xs:annotation>
65         <xs:sequence>
66             <xs:element name="strength" type="xs:integer"/>
67             <xs:element name="screen_edge_strength" type="xs:integer"/>
68         </xs:sequence>
69     </xs:complexType>
70     <xs:complexType name="focus">
71         <xs:annotation>
72             <xs:documentation>defines aspects of window focus</xs:documentation>
73         </xs:annotation>
74         <xs:sequence>
75             <xs:element name="focusNew" type="ob:yesorno"/>
76             <xs:element name="focusLast" type="ob:yesorno"/>
77             <xs:element name="followMouse" type="ob:yesorno"/>
78             <xs:element name="focusDelay" type="xs:integer"/>
79             <xs:element name="raiseOnFocus" type="ob:yesorno"/>
80         </xs:sequence>
81     </xs:complexType>
82     <xs:complexType name="placement">
83         <xs:annotation>
84             <xs:documentation>defines how new windows are placed</xs:documentation>
85         </xs:annotation>
86         <xs:sequence>
87             <xs:element name="policy" type="ob:placementpolicy"/>
88         </xs:sequence>
89     </xs:complexType>
90     <xs:complexType name="theme">
91         <xs:sequence>
92             <xs:element name="name" type="xs:string"/>
93             <xs:element name="titlelayout" type="xs:string"/>
94             <xs:element name="keepBorder" type="ob:yesorno"/>
95         </xs:sequence>
96     </xs:complexType>
97     <xs:complexType name="desktops">
98         <xs:sequence>
99             <xs:element name="number" type="xs:integer"/>
100             <xs:element name="names">
101                 <xs:complexType>
102                     <xs:sequence>
103                         <xs:element maxOccurs="unbounded" name="name" type="xs:string"/>
104                     </xs:sequence>
105                 </xs:complexType>
106             </xs:element>
107             <xs:element name="firstdesk" type="xs:integer"/>
108         </xs:sequence>
109     </xs:complexType>
110     <xs:complexType name="resize">
111         <xs:sequence>
112             <xs:element name="drawContents" type="ob:yesorno"/>
113             <xs:element name="popupShow" type="ob:popupshow"/>
114             <xs:element name="popupPosition" type="ob:popupposition"/>
115         </xs:sequence>
116     </xs:complexType>
117     <xs:complexType name="dock">
118         <xs:sequence>
119             <xs:element name="position" type="ob:position"/>
120             <xs:element name="stacking" type="ob:stacking"/>
121             <xs:element name="direction" type="ob:direction"/>
122             <xs:element name="floatingX" type="xs:integer"/>
123             <xs:element name="floatingY" type="xs:integer"/>
124             <xs:element name="autoHide" type="ob:yesorno"/>
125             <xs:element name="hideDelay" type="xs:integer"/>
126             <xs:element name="moveButton" type="ob:button"/>
127         </xs:sequence>
128     </xs:complexType>
129     <xs:complexType name="action">
130         <xs:sequence>
131             <xs:element minOccurs="0" name="menu" type="xs:string"/>
132             <xs:element minOccurs="0" name="desktop" type="xs:integer"/>
133             <xs:element minOccurs="0" name="follow" type="ob:yesorno"/>
134             <xs:element minOccurs="0" name="execute" type="xs:string"/>
135             <xs:element minOccurs="0" name="dialog" type="ob:yesorno"/>
136         </xs:sequence>
137         <xs:attribute name="name" type="ob:actionname" use="required"/>
138     </xs:complexType>
139     <xs:complexType name="keybind">
140         <xs:sequence>
141             <xs:element maxOccurs="unbounded" name="action" type="ob:action"/>
142         </xs:sequence>
143         <xs:attribute name="key" type="ob:keyname" use="required"/>
144     </xs:complexType>
145     <xs:complexType name="keyboard">
146         <xs:sequence>
147             <xs:element name="chainQuitKey" type="ob:keyname"/>
148             <xs:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
149         </xs:sequence>
150     </xs:complexType>
151     <xs:complexType name="mousebind">
152         <xs:sequence>
153             <xs:element maxOccurs="unbounded" name="action" type="ob:action"/>
154         </xs:sequence>
155         <xs:attribute name="action" type="ob:mouseaction" use="required"/>
156         <xs:attribute name="button" type="ob:button" use="required"/>
157     </xs:complexType>
158     <xs:complexType name="context">
159         <xs:sequence>
160             <xs:element maxOccurs="unbounded" name="mousebind" type="ob:mousebind"/>
161         </xs:sequence>
162         <xs:attribute name="name" type="ob:contextname" use="required"/>
163     </xs:complexType>
164     <xs:complexType name="mouse">
165         <xs:sequence>
166             <xs:element name="dragThreshold" type="xs:integer"/>
167             <xs:element name="doubleClickTime" type="xs:integer"/>
168             <xs:element maxOccurs="unbounded" name="context" type="ob:context"/>
169         </xs:sequence>
170     </xs:complexType>
171     <xs:complexType name="menu">
172         <xs:sequence>
173             <xs:element maxOccurs="unbounded" name="file" type="xs:string"/>
174             <xs:element name="warpPointer" type="ob:yesorno"/>
175             <xs:element name="xorStyle" type="ob:yesorno"/>
176         </xs:sequence>
177     </xs:complexType>
178     <!--
179          simple types / restrictions
180       -->
181     <xs:simpleType name="yesorno">
182         <xs:restriction base="xs:string">
183             <xs:enumeration value="yes"/>
184             <xs:enumeration value="no"/>
185         </xs:restriction>
186     </xs:simpleType>
187     <xs:simpleType name="placementpolicy">
188         <xs:restriction base="xs:string">
189             <xs:enumeration value="Smart"/>
190             <xs:enumeration value="UnderMouse"/>
191         </xs:restriction>
192     </xs:simpleType>
193     <xs:simpleType name="popupshow">
194         <xs:restriction base="xs:string">
195             <xs:enumeration value="Always"/>
196             <xs:enumeration value="Never"/>
197             <xs:enumeration value="Nonpixel"/>
198         </xs:restriction>
199     </xs:simpleType>
200     <xs:simpleType name="popupposition">
201         <xs:restriction base="xs:string">
202             <xs:enumeration value="Top"/>
203             <xs:enumeration value="Center"/>
204         </xs:restriction>
205     </xs:simpleType>
206     <xs:simpleType name="position">
207         <xs:restriction base="xs:string">
208             <xs:enumeration value="TopLeft"/>
209             <xs:enumeration value="Top"/>
210             <xs:enumeration value="TopRight"/>
211             <xs:enumeration value="Right"/>
212             <xs:enumeration value="BottomRight"/>
213             <xs:enumeration value="Bottom"/>
214             <xs:enumeration value="BottomLeft"/>
215             <xs:enumeration value="Left"/>
216             <xs:enumeration value="Floating"/>
217         </xs:restriction>
218     </xs:simpleType>
219     <xs:simpleType name="stacking">
220         <xs:restriction base="xs:string">
221             <xs:enumeration value="Top"/>
222             <xs:enumeration value="Normal"/>
223             <xs:enumeration value="Bottom"/>
224         </xs:restriction>
225     </xs:simpleType>
226     <xs:simpleType name="direction">
227         <xs:restriction base="xs:string">
228             <xs:enumeration value="Horizontal"/>
229             <xs:enumeration value="Vertical"/>
230         </xs:restriction>
231     </xs:simpleType>
232     <xs:simpleType name="keyname">
233         <xs:restriction base="xs:string">
234             <xs:pattern value="(A-)?(S-)?(A-)?(C-)?(A-)?(S-)?(A-)?[a-zA-Z0-9]*"/>
235         </xs:restriction>
236     </xs:simpleType>
237     <xs:simpleType name="contextname">
238         <xs:restriction base="xs:string">
239             <xs:enumeration value="Desktop"/>
240             <xs:enumeration value="Client"/>
241             <xs:enumeration value="Titlebar"/>
242             <xs:enumeration value="Handle"/>
243             <xs:enumeration value="Frame"/>
244             <xs:enumeration value="TLCorner"/>
245             <xs:enumeration value="TRCorner"/>
246             <xs:enumeration value="BLCorner"/>
247             <xs:enumeration value="BRCorner"/>
248             <xs:enumeration value="Maximize"/>
249             <xs:enumeration value="AllDesktops"/>
250             <xs:enumeration value="Shade"/>
251             <xs:enumeration value="Iconify"/>
252             <xs:enumeration value="Icon"/>
253             <xs:enumeration value="Close"/>
254             <xs:enumeration value="MoveResize"/>
255         </xs:restriction>
256     </xs:simpleType>
257     <xs:simpleType name="button">
258         <xs:restriction base="xs:string">
259             <xs:enumeration value="Left"/>
260             <xs:enumeration value="Middle"/>
261             <xs:enumeration value="Right"/>
262             <xs:enumeration value="Up"/>
263             <xs:enumeration value="Down"/>
264             <xs:enumeration value="A-Left"/>
265             <xs:enumeration value="A-Middle"/>
266             <xs:enumeration value="A-Right"/>
267             <xs:enumeration value="A-Up"/>
268             <xs:enumeration value="A-Down"/>
269             <xs:enumeration value="C-A-Left"/>
270             <xs:enumeration value="C-A-Middle"/>
271             <xs:enumeration value="C-A-Right"/>
272             <xs:enumeration value="C-A-Up"/>
273             <xs:enumeration value="C-A-Down"/>
274         </xs:restriction>
275     </xs:simpleType>
276     <xs:simpleType name="mouseaction">
277         <xs:restriction base="xs:string">
278             <xs:enumeration value="Click"/>
279             <xs:enumeration value="DoubleClick"/>
280             <xs:enumeration value="Drag"/>
281             <xs:enumeration value="Press"/>
282             <xs:enumeration value="Release"/>
283         </xs:restriction>
284     </xs:simpleType>
285     <xs:simpleType name="actionname">
286         <xs:restriction base="xs:string">
287             <xs:enumeration value="Activate"/>
288             <xs:enumeration value="Close"/>
289             <xs:enumeration value="Desktop"/>
290             <xs:enumeration value="DesktopDown"/>
291             <xs:enumeration value="DesktopLast"/>
292             <xs:enumeration value="DesktopLeft"/>
293             <xs:enumeration value="DesktopNext"/>
294             <xs:enumeration value="DesktopPrevious"/>
295             <xs:enumeration value="DesktopRight"/>
296             <xs:enumeration value="DesktopUp"/>
297             <xs:enumeration value="DirectionalFocusEast"/>
298             <xs:enumeration value="DirectionalFocusNorth"/>
299             <xs:enumeration value="DirectionalFocusNortheast"/>
300             <xs:enumeration value="DirectionalFocusNorthwest"/>
301             <xs:enumeration value="DirectionalFocusSouth"/>
302             <xs:enumeration value="DirectionalFocusSoutheast"/>
303             <xs:enumeration value="DirectionalFocusSouthwest"/>
304             <xs:enumeration value="DirectionalFocusWest"/>
305             <xs:enumeration value="Execute"/>
306             <xs:enumeration value="Exit"/>
307             <xs:enumeration value="Focus"/>
308             <xs:enumeration value="GrowToEdgeEast"/>
309             <xs:enumeration value="GrowToEdgeNorth"/>
310             <xs:enumeration value="GrowToEdgeSouth"/>
311             <xs:enumeration value="GrowToEdgeWest"/>
312             <xs:enumeration value="Iconify"/>
313             <xs:enumeration value="Kill"/>
314             <xs:enumeration value="Lower"/>
315             <xs:enumeration value="MaximizeFull"/>
316             <xs:enumeration value="MaximizeHorz"/>
317             <xs:enumeration value="MaximizeVert"/>
318             <xs:enumeration value="Move"/>
319             <xs:enumeration value="MoveRelativeHorz"/>
320             <xs:enumeration value="MoveRelativeVert"/>
321             <xs:enumeration value="MoveToEdgeEast"/>
322             <xs:enumeration value="MoveToEdgeNorth"/>
323             <xs:enumeration value="MoveToEdgeSouth"/>
324             <xs:enumeration value="MoveToEdgeWest"/>
325             <xs:enumeration value="NextWindow"/>
326             <xs:enumeration value="NextWindowLinear"/>
327             <xs:enumeration value="PreviousWindow"/>
328             <xs:enumeration value="PreviousWindowLinear"/>
329             <xs:enumeration value="Raise"/>
330             <xs:enumeration value="RaiseLower"/>
331             <xs:enumeration value="Resize"/>
332             <xs:enumeration value="ResizeRelativeHorz"/>
333             <xs:enumeration value="ResizeRelativeVert"/>
334             <xs:enumeration value="Restart"/>
335             <xs:enumeration value="SendToBottomLayer"/>
336             <xs:enumeration value="SendToDesktop"/>
337             <xs:enumeration value="SendToDesktopDown"/>
338             <xs:enumeration value="SendToDesktopLeft"/>
339             <xs:enumeration value="SendToDesktopNext"/>
340             <xs:enumeration value="SendToDesktopPrevious"/>
341             <xs:enumeration value="SendToDesktopRight"/>
342             <xs:enumeration value="SendToDesktopUp"/>
343             <xs:enumeration value="SendToNormalLayer"/>
344             <xs:enumeration value="SendToTopLayer"/>
345             <xs:enumeration value="Shade"/>
346             <xs:enumeration value="ShadeLower"/>
347             <xs:enumeration value="ShowDesktop"/>
348             <xs:enumeration value="ShowMenu"/>
349             <xs:enumeration value="ToggleAlwaysOnBottom"/>
350             <xs:enumeration value="ToggleAlwaysOnTop"/>
351             <xs:enumeration value="ToggleDecorations"/>
352             <xs:enumeration value="ToggleFullscreen"/>
353             <xs:enumeration value="ToggleMaximizeFull"/>
354             <xs:enumeration value="ToggleMaximizeHorz"/>
355             <xs:enumeration value="ToggleMaximizeVert"/>
356             <xs:enumeration value="ToggleOmnipresent"/>
357             <xs:enumeration value="ToggleShade"/>
358             <xs:enumeration value="ToggleShowDesktop"/>
359             <xs:enumeration value="Unfocus"/>
360             <xs:enumeration value="UnmaximizeFull"/>
361             <xs:enumeration value="UnmaximizeHorz"/>
362             <xs:enumeration value="UnmaximizeVert"/>
363             <xs:enumeration value="Unshade"/>
364             <xs:enumeration value="UnshadeRaise"/>
365             <xs:enumeration value="UnShowDesktop"/>
366         </xs:restriction>
367     </xs:simpleType>
368 </xs:schema>