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