]> Dogcows Code - chaz/openbox/blob - data/rc.xsd
compliance over functionlity
[chaz/openbox] / data / rc.xsd
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
2
3 <!-- XML Schema for the Openbox window manager configuration file -->
4
5 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6 targetNamespace="http://openbox.org/4.0/rc"
7 xmlns:ob="http://openbox.org/4.0/rc"
8 elementFormDefault="qualified">
9 <!--
10 root node
11 -->
12 <xsd:element name="openbox_config">
13 <xsd:annotation>
14 <xsd:documentation>all these elements are expected in a openbox config file</xsd:documentation>
15 </xsd:annotation>
16 <xsd:complexType>
17 <xsd:element name="resistance" type="ob:resistance"/>
18 <xsd:element name="focus" type="ob:focus"/>
19 <xsd:element name="placement" type="ob:placement"/>
20 <xsd:element name="theme" type="ob:theme"/>
21 <xsd:element name="desktops" type="ob:desktops"/>
22 <xsd:element name="resize" type="ob:resize"/>
23 <xsd:element name="dock" type="ob:dock"/>
24 <xsd:element name="keyboard" type="ob:keyboard"/>
25 <xsd:element name="mouse" type="ob:mouse"/>
26 <xsd:element name="menu" type="ob:menu"/>
27 <xsd:element name="applications" type="ob:applications"/>
28 </xsd:complexType>
29 </xsd:element>
30 <!--
31 complex types
32 -->
33 <xsd:complexType name="resistance">
34 <xsd:annotation>
35 <xsd:documentation>defines behaviour of windows when close to each other or the screen edge</xsd:documentation>
36 </xsd:annotation>
37 <xsd:element minOccurs="0" name="strength" type="xsd:integer"/>
38 <xsd:element minOccurs="0" name="screen_edge_strength" type="xsd:integer"/>
39 </xsd:complexType>
40 <xsd:complexType name="focus">
41 <xsd:annotation>
42 <xsd:documentation>defines aspects of window focus</xsd:documentation>
43 </xsd:annotation>
44 <xsd:element minOccurs="0" name="focusNew" type="ob:bool"/>
45 <xsd:element minOccurs="0" name="focusLast" type="ob:bool"/>
46 <xsd:element minOccurs="0" name="followMouse" type="ob:bool"/>
47 <xsd:element minOccurs="0" name="underMouse" type="ob:bool"/>
48 <xsd:element minOccurs="0" name="focusDelay" type="xsd:integer"/>
49 <xsd:element minOccurs="0" name="raiseOnFocus" type="ob:bool"/>
50 </xsd:complexType>
51 <xsd:complexType name="placement">
52 <xsd:annotation>
53 <xsd:documentation>defines how new windows are placed</xsd:documentation>
54 </xsd:annotation>
55 <xsd:element name="policy" type="ob:placementpolicy"/>
56 <xsd:element name="center" type="ob:bool"/>
57 </xsd:complexType>
58 <xsd:complexType name="theme">
59 <xsd:element minOccurs="0" name="name" type="xsd:string"/>
60 <xsd:element minOccurs="0" name="titleLayout" type="xsd:string"/>
61 <xsd:element minOccurs="0" name="keepBorder" type="ob:bool"/>
62 <xsd:element minOccurs="0" name="animateIconify" type="ob:bool"/>
63 <xsd:element minOccurs="0" name="font" type="ob:font"/>
64 </xsd:complexType>
65 <xsd:complexType name="font">
66 <xsd:element minOccurs="0" name="name" type="xsd:string"/>
67 <xsd:element minOccurs="0" name="size" type="xsd:integer"/>
68 <xsd:element minOccurs="0" name="weight" type="ob:fontweight"/>
69 <xsd:element minOccurs="0" name="slant" type="ob:fontslant"/>
70 <xsd:attribute name="place" type="ob:fontplace" use="required"/>
71 </xsd:complexType>
72 <xsd:complexType name="desktops">
73 <xsd:annotation>
74 <xsd:documentation>defines the number and names of desktops</xsd:documentation>
75 </xsd:annotation>
76 <xsd:element minOccurs="0" name="number" type="xsd:integer"/>
77 <xsd:element minOccurs="0" name="firstdesk" type="xsd:integer"/>
78 <xsd:element minOccurs="0" name="names">
79 <xsd:complexType>
80 <xsd:element maxOccurs="unbounded" name="name" type="xsd:string"/>
81 </xsd:complexType>
82 </xsd:element>
83 </xsd:complexType>
84 <xsd:complexType name="resize">
85 <xsd:element minOccurs="0" name="drawContents" type="ob:bool"/>
86 <xsd:element minOccurs="0" name="popupShow" type="ob:popupshow"/>
87 <xsd:element minOccurs="0" name="popupPosition" type="ob:popupposition"/>
88 </xsd:complexType>
89 <xsd:complexType name="dock">
90 <xsd:element minOccurs="0" name="position" type="ob:dock_position"/>
91 <xsd:element minOccurs="0" name="floatingX" type="xsd:integer"/>
92 <xsd:element minOccurs="0" name="floatingY" type="xsd:integer"/>
93 <xsd:element minOccurs="0" name="noStrut" type="ob:bool"/>
94 <xsd:element minOccurs="0" name="stacking" type="ob:layer"/>
95 <xsd:element minOccurs="0" name="direction" type="ob:direction"/>
96 <xsd:element minOccurs="0" name="autoHide" type="ob:bool"/>
97 <xsd:element minOccurs="0" name="hideDelay" type="xsd:integer"/>
98 <xsd:element minOccurs="0" name="showDelay" type="xsd:integer"/>
99 <xsd:element minOccurs="0" name="moveButton" type="ob:button"/>
100 </xsd:complexType>
101 <xsd:complexType name="action">
102 <xsd:element minOccurs="0" name="execute" type="xsd:string"/>
103 <xsd:element minOccurs="0" name="menu" type="xsd:string"/>
104 <xsd:element minOccurs="0" name="delta" type="xsd:integer"/>
105 <xsd:element minOccurs="0" name="x" type="xsd:integer"/>
106 <xsd:element minOccurs="0" name="y" type="xsd:integer"/>
107 <xsd:element minOccurs="0" name="left" type="xsd:integer"/>
108 <xsd:element minOccurs="0" name="right" type="xsd:integer"/>
109 <xsd:element minOccurs="0" name="up" type="xsd:integer"/>
110 <xsd:element minOccurs="0" name="down" type="xsd:integer"/>
111 <xsd:element minOccurs="0" name="desktop" type="xsd:integer"/>
112 <xsd:element minOccurs="0" name="wrap" type="ob:bool"/>
113 <xsd:element minOccurs="0" name="follow" type="ob:bool"/>
114 <xsd:element minOccurs="0" name="dialog" type="ob:bool"/>
115 <xsd:element minOccurs="0" name="panels" type="ob:bool"/>
116 <xsd:element minOccurs="0" name="here" type="ob:bool"/>
117 <xsd:element minOccurs="0" name="linear" type="ob:bool"/>
118 <xsd:element minOccurs="0" name="group" type="ob:bool"/>
119 <xsd:attribute name="name" type="ob:actionname" use="required"/>
120 </xsd:complexType>
121 <xsd:complexType name="keybind">
122 <xsd:choice>
123 <xsd:element maxOccurs="unbounded" name="action" type="ob:action"/>
124 <xsd:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
125 </xsd:choice>
126 <xsd:attribute name="chroot" type="ob:bool"/>
127 <xsd:attribute name="key" type="ob:keyname" use="required"/>
128 </xsd:complexType>
129 <xsd:complexType name="keyboard">
130 <xsd:element minOccurs="0" name="chainQuitKey" type="ob:keyname"/>
131 <xsd:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
132 </xsd:complexType>
133 <xsd:complexType name="mousebind">
134 <xsd:element maxOccurs="unbounded" name="action" type="ob:action"/>
135 <xsd:attribute name="action" type="ob:mouseaction" use="required"/>
136 <xsd:attribute name="button" type="ob:button" use="required"/>
137 </xsd:complexType>
138 <xsd:complexType name="context">
139 <xsd:element maxOccurs="unbounded" name="mousebind" type="ob:mousebind"/>
140 <xsd:attribute name="name" type="ob:contextname" use="required"/>
141 </xsd:complexType>
142 <xsd:complexType name="mouse">
143 <xsd:element minOccurs="0" name="dragThreshold" type="xsd:integer"/>
144 <xsd:element minOccurs="0" name="doubleClickTime" type="xsd:integer"/>
145 <xsd:element minOccurs="0" name="screenEdgeWarpTime" type="xsd:integer"/>
146 <xsd:element maxOccurs="unbounded" name="context" type="ob:context"/>
147 </xsd:complexType>
148 <xsd:complexType name="menu">
149 <xsd:element maxOccurs="unbounded" name="file" type="xsd:string"/>
150 <xsd:element minOccurs="0" name="hideDelay" type="xsd:integer"/>
151 <xsd:element minOccurs="0" name="middle" type="ob:bool"/>
152 <xsd:element minOccurs="0" name="submenuShowDelay" type="xsd:integer"/>
153 <xsd:element minOccurs="0" name="applicationIcons" type="ob:bool"/>
154 </xsd:complexType>
155 <xsd:complexType name="window_position">
156 <xsd:element name="x" type="ob:center_or_int"/>
157 <xsd:element name="y" type="ob:center_or_int"/>
158 <xsd:element name="monitor" type="ob:mouse_or_int"/>
159 <xsd:element minOccurs="0" name="head" type="xsd:string"/>
160 </xsd:complexType>
161 <xsd:complexType name="application">
162 <xsd:element minOccurs="0" name="decor" type="xsd:bool"/>
163 <xsd:element minOccurs="0" name="shade" type="ob:bool"/>
164 <xsd:element minOccurs="0" name="position" type="ob:window_position"/>
165 <xsd:element minOccurs="0" name="focus" type="xsd:string"/>
166 <xsd:element minOccurs="0" name="desktop" type="xsd:integer"/>
167 <xsd:element minOccurs="0" name="layer" type="ob:layer"/>
168 <xsd:element minOccurs="0" name="iconic" type="ob:bool"/>
169 <xsd:element minOccurs="0" name="skip_pager" type="ob:bool"/>
170 <xsd:element minOccurs="0" name="skip_taskbar" type="ob:bool"/>
171 <xsd:element minOccurs="0" name="fullscreen" type="ob:bool"/>
172 <xsd:element minOccurs="0" name="maximized" type="ob:maximization"/>
173 <!-- at least one of these must be present -->
174 <xsd:attribute name="name" type="xsd:string"/>
175 <xsd:attribute name="class" type="xsd:string"/>
176 <xsd:attribute name="role" type="xsd:string"/>
177 </xsd:complexType>
178 <xsd:complexType name="applications">
179 <xsd:element minOccurs="0" maxOccurs="unbounded" name="application" type="ob:application"/>
180 </xsd:complexType>
181 <!--
182 simple types / restrictions
183 -->
184 <xsd:simpleType name="actionname">
185 <xsd:restriction base="xsd:string">
186 <xsd:enumeration value="Activate"/>
187 <xsd:enumeration value="BreakChroot"/>
188 <xsd:enumeration value="Close"/>
189 <xsd:enumeration value="Desktop"/>
190 <xsd:enumeration value="DesktopDown"/>
191 <xsd:enumeration value="DesktopLast"/>
192 <xsd:enumeration value="DesktopLeft"/>
193 <xsd:enumeration value="DesktopNext"/>
194 <xsd:enumeration value="DesktopPrevious"/>
195 <xsd:enumeration value="DesktopRight"/>
196 <xsd:enumeration value="DesktopUp"/>
197 <xsd:enumeration value="DirectionalFocusEast"/>
198 <xsd:enumeration value="DirectionalFocusNorth"/>
199 <xsd:enumeration value="DirectionalFocusNortheast"/>
200 <xsd:enumeration value="DirectionalFocusNorthwest"/>
201 <xsd:enumeration value="DirectionalFocusSouth"/>
202 <xsd:enumeration value="DirectionalFocusSoutheast"/>
203 <xsd:enumeration value="DirectionalFocusSouthwest"/>
204 <xsd:enumeration value="DirectionalFocusWest"/>
205 <xsd:enumeration value="Execute"/>
206 <xsd:enumeration value="Exit"/>
207 <xsd:enumeration value="Focus"/>
208 <xsd:enumeration value="FocusToBottom"/>
209 <xsd:enumeration value="GrowToEdgeEast"/>
210 <xsd:enumeration value="GrowToEdgeNorth"/>
211 <xsd:enumeration value="GrowToEdgeSouth"/>
212 <xsd:enumeration value="GrowToEdgeWest"/>
213 <xsd:enumeration value="Iconify"/>
214 <xsd:enumeration value="Kill"/>
215 <xsd:enumeration value="Lower"/>
216 <xsd:enumeration value="MaximizeFull"/>
217 <xsd:enumeration value="MaximizeHorz"/>
218 <xsd:enumeration value="MaximizeVert"/>
219 <xsd:enumeration value="Move"/>
220 <xsd:enumeration value="MoveRelative"/>
221 <xsd:enumeration value="MoveRelativeHorz"/>
222 <xsd:enumeration value="MoveRelativeVert"/>
223 <xsd:enumeration value="MoveToCenter"/>
224 <xsd:enumeration value="MoveFromEdgeEast"/>
225 <xsd:enumeration value="MoveFromEdgeNorth"/>
226 <xsd:enumeration value="MoveFromEdgeSouth"/>
227 <xsd:enumeration value="MoveFromEdgeWest"/>
228 <xsd:enumeration value="MoveToEdgeEast"/>
229 <xsd:enumeration value="MoveToEdgeNorth"/>
230 <xsd:enumeration value="MoveToEdgeSouth"/>
231 <xsd:enumeration value="MoveToEdgeWest"/>
232 <xsd:enumeration value="NextWindow"/>
233 <xsd:enumeration value="PreviousWindow"/>
234 <xsd:enumeration value="Raise"/>
235 <xsd:enumeration value="RaiseLower"/>
236 <xsd:enumeration value="Reconfigure"/>
237 <xsd:enumeration value="Resize"/>
238 <xsd:enumeration value="ResizeRelative"/>
239 <xsd:enumeration value="ResizeRelativeHorz"/>
240 <xsd:enumeration value="ResizeRelativeVert"/>
241 <xsd:enumeration value="Restart"/>
242 <xsd:enumeration value="SendToBottomLayer"/>
243 <xsd:enumeration value="SendToDesktop"/>
244 <xsd:enumeration value="SendToDesktopDown"/>
245 <xsd:enumeration value="SendToDesktopLeft"/>
246 <xsd:enumeration value="SendToDesktopNext"/>
247 <xsd:enumeration value="SendToDesktopPrevious"/>
248 <xsd:enumeration value="SendToDesktopRight"/>
249 <xsd:enumeration value="SendToDesktopUp"/>
250 <xsd:enumeration value="SendToNormalLayer"/>
251 <xsd:enumeration value="SendToTopLayer"/>
252 <xsd:enumeration value="Shade"/>
253 <xsd:enumeration value="ShadeLower"/>
254 <xsd:enumeration value="ShowDesktop"/>
255 <xsd:enumeration value="ShowMenu"/>
256 <xsd:enumeration value="ToggleAlwaysOnBottom"/>
257 <xsd:enumeration value="ToggleAlwaysOnTop"/>
258 <xsd:enumeration value="ToggleDecorations"/>
259 <xsd:enumeration value="ToggleDockAutoHide"/>
260 <xsd:enumeration value="ToggleFullscreen"/>
261 <xsd:enumeration value="ToggleMaximizeFull"/>
262 <xsd:enumeration value="ToggleMaximizeHorz"/>
263 <xsd:enumeration value="ToggleMaximizeVert"/>
264 <xsd:enumeration value="ToggleOmnipresent"/>
265 <xsd:enumeration value="ToggleShade"/>
266 <xsd:enumeration value="ToggleShowDesktop"/>
267 <xsd:enumeration value="Unfocus"/>
268 <xsd:enumeration value="UnmaximizeFull"/>
269 <xsd:enumeration value="UnmaximizeHorz"/>
270 <xsd:enumeration value="UnmaximizeVert"/>
271 <xsd:enumeration value="Unshade"/>
272 <xsd:enumeration value="UnshadeRaise"/>
273 <xsd:enumeration value="UnShowDesktop"/>
274 </xsd:restriction>
275 </xsd:simpleType>
276 <xsd:simpleType name="bool">
277 <!-- this is copied to maximization. Keep that in sync. -->
278 <xsd:restriction base="xsd:string">
279 <xsd:enumeration value="yes"/>
280 <xsd:enumeration value="no"/>
281 <xsd:enumeration value="true"/>
282 <xsd:enumeration value="false"/>
283 <xsd:enumeration value="on"/>
284 <xsd:enumeration value="off"/>
285 </xsd:restriction>
286 </xsd:simpleType>
287 <xsd:simpleType name="fontplace">
288 <xsd:restriction base="xsd:string">
289 <xsd:enumeration value="ActiveWindow"/>
290 <xsd:enumeration value="InactiveWindow"/>
291 <xsd:enumeration value="MenuHeader"/>
292 <xsd:enumeration value="MenuItem"/>
293 <xsd:enumeration value="OnScreenDisplay"/>
294 </xsd:restriction>
295 </xsd:simpleType>
296 <xsd:simpleType name="fontweight">
297 <xsd:restriction base="xsd:string">
298 <xsd:enumeration value="normal"/>
299 <xsd:enumeration value="bold"/>
300 </xsd:restriction>
301 </xsd:simpleType>
302 <xsd:simpleType name="fontslant">
303 <xsd:restriction base="xsd:string">
304 <xsd:enumeration value="normal"/>
305 <xsd:enumeration value="italic"/>
306 <xsd:enumeration value="opaque"/>
307 </xsd:restriction>
308 </xsd:simpleType>
309 <xsd:simpleType name="button">
310 <xsd:restriction base="xsd:string">
311 <!-- FIXME what??? -->
312 <xsd:enumeration value="Left"/>
313 <xsd:enumeration value="Middle"/>
314 <xsd:enumeration value="Right"/>
315 <xsd:enumeration value="Up"/>
316 <xsd:enumeration value="Down"/>
317 <xsd:enumeration value="A-Left"/>
318 <xsd:enumeration value="A-Middle"/>
319 <xsd:enumeration value="A-Right"/>
320 <xsd:enumeration value="A-Up"/>
321 <xsd:enumeration value="A-Down"/>
322 <xsd:enumeration value="C-A-Left"/>
323 <xsd:enumeration value="C-A-Middle"/>
324 <xsd:enumeration value="C-A-Right"/>
325 <xsd:enumeration value="C-A-Up"/>
326 <xsd:enumeration value="C-A-Down"/>
327 </xsd:restriction>
328 </xsd:simpleType>
329 <xsd:simpleType name="center_or_int">
330 <xsd:restriction base="xsd:string">
331 <!-- ob: atoi($_) unless $_ eq 'center'; -->
332 <!-- I think the regexp DTRT WRT atoi. -->
333 <xsd:pattern value="center|0|[1-9][0-9]*"/>
334 </xsd:restriction>
335 </xsd:simpleType>
336 <xsd:simpleType name="mouse_or_int">
337 <xsd:restriction base="xsd:string">
338 <!-- ob: atoi($_) unless $_ eq 'center'; -->
339 <!-- I think the regexp DTRT WRT atoi. -->
340 <xsd:pattern value="mouse|0|[1-9][0-9]*"/>
341 </xsd:restriction>
342 </xsd:simpleType>
343 <xsd:simpleType name="contextname">
344 <xsd:restriction base="xsd:string">
345 <xsd:enumeration value="Desktop"/>
346 <xsd:enumeration value="Root"/>
347 <xsd:enumeration value="Client"/>
348 <xsd:enumeration value="Titlebar"/>
349 <xsd:enumeration value="Frame"/>
350 <xsd:enumeration value="TLCorner"/>
351 <xsd:enumeration value="TRCorner"/>
352 <xsd:enumeration value="BLCorner"/>
353 <xsd:enumeration value="BRCorner"/>
354 <xsd:enumeration value="Top"/>
355 <xsd:enumeration value="Left"/>
356 <xsd:enumeration value="Right"/>
357 <xsd:enumeration value="Bottom"/>
358 <xsd:enumeration value="Maximize"/>
359 <xsd:enumeration value="AllDesktops"/>
360 <xsd:enumeration value="Shade"/>
361 <xsd:enumeration value="Iconify"/>
362 <xsd:enumeration value="Icon"/>
363 <xsd:enumeration value="Close"/>
364 <xsd:enumeration value="MoveResize"/>
365 </xsd:restriction>
366 </xsd:simpleType>
367 <xsd:simpleType name="direction">
368 <xsd:restriction base="xsd:string">
369 <xsd:enumeration value="Horizontal"/>
370 <xsd:enumeration value="Vertical"/>
371 </xsd:restriction>
372 </xsd:simpleType>
373 <xsd:simpleType name="dock_position">
374 <xsd:restriction base="xsd:string">
375 <xsd:enumeration value="TopLeft"/>
376 <xsd:enumeration value="Top"/>
377 <xsd:enumeration value="TopRight"/>
378 <xsd:enumeration value="Right"/>
379 <xsd:enumeration value="BottomRight"/>
380 <xsd:enumeration value="Bottom"/>
381 <xsd:enumeration value="BottomLeft"/>
382 <xsd:enumeration value="Left"/>
383 <xsd:enumeration value="Floating"/>
384 </xsd:restriction>
385 </xsd:simpleType>
386 <xsd:simpleType name="keyname">
387 <xsd:restriction base="xsd:string">
388 <!-- FIXME: M, Mod2, Mod5 in addition to S, A, C -->
389 <!-- how do we do all substrings and permutations? -->
390 <xsd:pattern value="(A-)?(S-)?(A-)?(C-)?(A-)?(S-)?(A-)?[a-zA-Z0-9]*"/>
391 </xsd:restriction>
392 </xsd:simpleType>
393 <xsd:simpleType name="layer">
394 <xsd:restriction base="xsd:string">
395 <xsd:enumeration value="Above"/>
396 <xsd:enumeration value="Normal"/>
397 <xsd:enumeration value="Below"/>
398 </xsd:restriction>
399 </xsd:simpleType>
400 <xsd:simpleType name="maximization">
401 <xsd:restriction base="xsd:string">
402 <xsd:enumeration value="Horizontal"/>
403 <xsd:enumeration value="Vertical"/>
404 <!-- this is a copy of ob:bool. Keep it in sync. -->
405 <xsd:enumeration value="yes"/>
406 <xsd:enumeration value="no"/>
407 <xsd:enumeration value="true"/>
408 <xsd:enumeration value="false"/>
409 <xsd:enumeration value="on"/>
410 <xsd:enumeration value="off"/>
411 </xsd:restriction>
412 </xsd:simpleType>
413 <xsd:simpleType name="mouseaction">
414 <xsd:restriction base="xsd:string">
415 <xsd:enumeration value="Click"/>
416 <xsd:enumeration value="DoubleClick"/>
417 <xsd:enumeration value="Drag"/>
418 <xsd:enumeration value="Press"/>
419 <xsd:enumeration value="Release"/>
420 </xsd:restriction>
421 </xsd:simpleType>
422 <xsd:simpleType name="placementpolicy">
423 <xsd:restriction base="xsd:string">
424 <xsd:enumeration value="Smart"/>
425 <xsd:enumeration value="UnderMouse"/>
426 </xsd:restriction>
427 </xsd:simpleType>
428 <xsd:simpleType name="popupposition">
429 <xsd:restriction base="xsd:string">
430 <xsd:enumeration value="Top"/>
431 <xsd:enumeration value="Center"/>
432 </xsd:restriction>
433 </xsd:simpleType>
434 <xsd:simpleType name="popupshow">
435 <xsd:restriction base="xsd:string">
436 <xsd:enumeration value="Always"/>
437 <xsd:enumeration value="Never"/>
438 <xsd:enumeration value="Nonpixel"/>
439 </xsd:restriction>
440 </xsd:simpleType>
441 </xsd:schema>
This page took 0.061294 seconds and 4 git commands to generate.