]> Dogcows Code - chaz/openbox/blob - data/rc.xsd
add the schemas to the distribution
[chaz/openbox] / 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 -->
25 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
26 targetNamespace="http://openbox.org/"
27 xmlns:ob="http://openbox.org/"
28 elementFormDefault="qualified">
29 <!--
30 root node
31 -->
32 <xs:element name="openbox_config">
33 <xs:annotation>
34 <xs:documentation>all these elements are expected in a openbox config file</xs:documentation>
35 </xs:annotation>
36 <xs:complexType>
37 <xs:sequence>
38 <xs:element name="resistance" type="ob:resistance"/>
39 <xs:element name="focus" type="ob:focus"/>
40 <xs:element name="theme" type="ob:theme"/>
41 <xs:element name="desktops" type="ob:desktops"/>
42 <xs:element name="resize" type="ob:resize"/>
43 <xs:element name="dock" type="ob:dock"/>
44 <xs:element name="keyboard" type="ob:keyboard"/>
45 <xs:element name="mouse" type="ob:mouse"/>
46 <xs:element name="menu" type="ob:menu"/>
47 </xs:sequence>
48 </xs:complexType>
49 </xs:element>
50 <!--
51 complex types
52 -->
53 <xs:complexType name="resistance">
54 <xs:annotation>
55 <xs:documentation>defines behaviour of windows when close to eachother or the screen edge</xs:documentation>
56 </xs:annotation>
57 <xs:sequence>
58 <xs:element name="strength" type="xs:integer"/>
59 <xs:element name="screen_edge_strength" type="xs:integer"/>
60 </xs:sequence>
61 </xs:complexType>
62 <xs:complexType name="focus">
63 <xs:annotation>
64 <xs:documentation>defines aspects of window focus</xs:documentation>
65 </xs:annotation>
66 <xs:sequence>
67 <xs:element name="focusNew" type="ob:yesorno"/>
68 <xs:element name="followMouse" type="ob:yesorno"/>
69 <xs:element name="focusDelay" type="xs:integer"/>
70 </xs:sequence>
71 </xs:complexType>
72 <xs:complexType name="theme">
73 <xs:sequence>
74 <xs:element name="name" type="xs:string"/>
75 <xs:element name="titlelayout" type="xs:string"/>
76 </xs:sequence>
77 </xs:complexType>
78 <xs:complexType name="desktops">
79 <xs:sequence>
80 <xs:element name="number" type="xs:integer"/>
81 <xs:element name="names">
82 <xs:complexType>
83 <xs:sequence>
84 <xs:element maxOccurs="unbounded" name="name" type="xs:string"/>
85 </xs:sequence>
86 </xs:complexType>
87 </xs:element>
88 </xs:sequence>
89 </xs:complexType>
90 <xs:complexType name="resize">
91 <xs:sequence>
92 <xs:element name="drawContents" type="ob:yesorno"/>
93 </xs:sequence>
94 </xs:complexType>
95 <xs:complexType name="dock">
96 <xs:sequence>
97 <xs:element name="position" type="ob:position"/>
98 <xs:element name="stacking" type="ob:stacking"/>
99 <xs:element name="direction" type="ob:direction"/>
100 <xs:element name="floatingX" type="xs:integer"/>
101 <xs:element name="floatingY" type="xs:integer"/>
102 <xs:element name="autoHide" type="ob:yesorno"/>
103 <xs:element name="hideTimeout" type="xs:integer"/>
104 </xs:sequence>
105 </xs:complexType>
106 <xs:complexType name="action">
107 <xs:sequence>
108 <xs:element minOccurs="0" name="menu" type="xs:string"/>
109 <xs:element minOccurs="0" name="desktop" type="xs:integer"/>
110 <xs:element minOccurs="0" name="follow" type="ob:yesorno"/>
111 <xs:element minOccurs="0" name="execute" type="xs:string"/>
112 </xs:sequence>
113 <xs:attribute name="name" type="ob:actionname" use="required"/>
114 </xs:complexType>
115 <xs:complexType name="keybind">
116 <xs:sequence>
117 <xs:element maxOccurs="unbounded" name="action" type="ob:action"/>
118 </xs:sequence>
119 <xs:attribute name="key" type="ob:keyname" use="required"/>
120 </xs:complexType>
121 <xs:complexType name="keyboard">
122 <xs:sequence>
123 <xs:element name="chainQuitKey" type="ob:keyname"/>
124 <xs:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
125 </xs:sequence>
126 </xs:complexType>
127 <xs:complexType name="mousebind">
128 <xs:sequence>
129 <xs:element maxOccurs="unbounded" name="action" type="ob:action"/>
130 </xs:sequence>
131 <xs:attribute name="action" type="ob:mouseaction" use="required"/>
132 <xs:attribute name="button" type="ob:button" use="required"/>
133 </xs:complexType>
134 <xs:complexType name="context">
135 <xs:sequence>
136 <xs:element maxOccurs="unbounded" name="mousebind" type="ob:mousebind"/>
137 </xs:sequence>
138 <xs:attribute name="name" type="ob:contextname" use="required"/>
139 </xs:complexType>
140 <xs:complexType name="mouse">
141 <xs:sequence>
142 <xs:element name="dragThreshold" type="xs:integer"/>
143 <xs:element name="doubleClickTime" type="xs:integer"/>
144 <xs:element maxOccurs="unbounded" name="context" type="ob:context"/>
145 </xs:sequence>
146 </xs:complexType>
147 <xs:complexType name="menu">
148 <xs:sequence>
149 <xs:element maxOccurs="unbounded" name="file" type="xs:string"/>
150 </xs:sequence>
151 </xs:complexType>
152 <!--
153 simple types / restrictions
154 -->
155 <xs:simpleType name="yesorno">
156 <xs:restriction base="xs:string">
157 <xs:enumeration value="yes"/>
158 <xs:enumeration value="no"/>
159 </xs:restriction>
160 </xs:simpleType>
161 <xs:simpleType name="position">
162 <xs:restriction base="xs:string">
163 <xs:enumeration value="topleft"/>
164 <xs:enumeration value="top"/>
165 <xs:enumeration value="topright"/>
166 <xs:enumeration value="right"/>
167 <xs:enumeration value="bottomright"/>
168 <xs:enumeration value="bottom"/>
169 <xs:enumeration value="bottomleft"/>
170 <xs:enumeration value="left"/>
171 <xs:enumeration value="floating"/>
172 </xs:restriction>
173 </xs:simpleType>
174 <xs:simpleType name="stacking">
175 <xs:restriction base="xs:string">
176 <xs:enumeration value="top"/>
177 <xs:enumeration value="normal"/>
178 <xs:enumeration value="bottom"/>
179 </xs:restriction>
180 </xs:simpleType>
181 <xs:simpleType name="direction">
182 <xs:restriction base="xs:string">
183 <xs:enumeration value="horizontal"/>
184 <xs:enumeration value="vertical"/>
185 </xs:restriction>
186 </xs:simpleType>
187 <xs:simpleType name="keyname">
188 <xs:restriction base="xs:string">
189 <xs:pattern value="(A-)?(S-)?(A-)?(C-)?(A-)?(S-)?(A-)?[a-zA-Z0-9]*"/>
190 </xs:restriction>
191 </xs:simpleType>
192 <xs:simpleType name="contextname">
193 <xs:restriction base="xs:string">
194 <xs:enumeration value="desktop"/>
195 <xs:enumeration value="client"/>
196 <xs:enumeration value="titlebar"/>
197 <xs:enumeration value="handle"/>
198 <xs:enumeration value="frame"/>
199 <xs:enumeration value="tlcorner"/>
200 <xs:enumeration value="trcorner"/>
201 <xs:enumeration value="blcorner"/>
202 <xs:enumeration value="brcorner"/>
203 <xs:enumeration value="maximize"/>
204 <xs:enumeration value="alldesktops"/>
205 <xs:enumeration value="shade"/>
206 <xs:enumeration value="iconify"/>
207 <xs:enumeration value="icon"/>
208 <xs:enumeration value="close"/>
209 </xs:restriction>
210 </xs:simpleType>
211 <xs:simpleType name="button">
212 <xs:restriction base="xs:string">
213 <xs:enumeration value="Left"/>
214 <xs:enumeration value="Middle"/>
215 <xs:enumeration value="Right"/>
216 <xs:enumeration value="Up"/>
217 <xs:enumeration value="Down"/>
218 <xs:enumeration value="A-Left"/>
219 <xs:enumeration value="A-Middle"/>
220 <xs:enumeration value="A-Right"/>
221 <xs:enumeration value="A-Up"/>
222 <xs:enumeration value="A-Down"/>
223 <xs:enumeration value="C-A-Left"/>
224 <xs:enumeration value="C-A-Middle"/>
225 <xs:enumeration value="C-A-Right"/>
226 <xs:enumeration value="C-A-Up"/>
227 <xs:enumeration value="C-A-Down"/>
228 </xs:restriction>
229 </xs:simpleType>
230 <xs:simpleType name="mouseaction">
231 <xs:restriction base="xs:string">
232 <xs:enumeration value="Click"/>
233 <xs:enumeration value="DoubleClick"/>
234 <xs:enumeration value="Drag"/>
235 <xs:enumeration value="Press"/>
236 <xs:enumeration value="Release"/>
237 </xs:restriction>
238 </xs:simpleType>
239 <xs:simpleType name="actionname">
240 <xs:restriction base="xs:string">
241 <xs:enumeration value="Activate"/>
242 <xs:enumeration value="Close"/>
243 <xs:enumeration value="Desktop"/>
244 <xs:enumeration value="DesktopDown"/>
245 <xs:enumeration value="DesktopLast"/>
246 <xs:enumeration value="DesktopLeft"/>
247 <xs:enumeration value="DesktopNext"/>
248 <xs:enumeration value="DesktopPrevious"/>
249 <xs:enumeration value="DesktopRight"/>
250 <xs:enumeration value="DesktopUp"/>
251 <xs:enumeration value="DirectionalFocusEast"/>
252 <xs:enumeration value="DirectionalFocusNorth"/>
253 <xs:enumeration value="DirectionalFocusNortheast"/>
254 <xs:enumeration value="DirectionalFocusNorthwest"/>
255 <xs:enumeration value="DirectionalFocusSouth"/>
256 <xs:enumeration value="DirectionalFocusSoutheast"/>
257 <xs:enumeration value="DirectionalFocusSouthwest"/>
258 <xs:enumeration value="DirectionalFocusWest"/>
259 <xs:enumeration value="Execute"/>
260 <xs:enumeration value="Exit"/>
261 <xs:enumeration value="Focus"/>
262 <xs:enumeration value="GrowToEdgeEast"/>
263 <xs:enumeration value="GrowToEdgeNorth"/>
264 <xs:enumeration value="GrowToEdgeSouth"/>
265 <xs:enumeration value="GrowToEdgeWest"/>
266 <xs:enumeration value="Iconify"/>
267 <xs:enumeration value="Kill"/>
268 <xs:enumeration value="Lower"/>
269 <xs:enumeration value="MaximizeFull"/>
270 <xs:enumeration value="MaximizeHorz"/>
271 <xs:enumeration value="MaximizeVert"/>
272 <xs:enumeration value="Move"/>
273 <xs:enumeration value="MoveRelativeHorz"/>
274 <xs:enumeration value="MoveRelativeVert"/>
275 <xs:enumeration value="MoveToEdgeEast"/>
276 <xs:enumeration value="MoveToEdgeNorth"/>
277 <xs:enumeration value="MoveToEdgeSouth"/>
278 <xs:enumeration value="MoveToEdgeWest"/>
279 <xs:enumeration value="NextWindow"/>
280 <xs:enumeration value="NextWindowLinear"/>
281 <xs:enumeration value="PreviousWindow"/>
282 <xs:enumeration value="PreviousWindowLinear"/>
283 <xs:enumeration value="Raise"/>
284 <xs:enumeration value="RaiseLower"/>
285 <xs:enumeration value="Resize"/>
286 <xs:enumeration value="ResizeRelativeHorz"/>
287 <xs:enumeration value="ResizeRelativeVert"/>
288 <xs:enumeration value="Restart"/>
289 <xs:enumeration value="SendToBottomLayer"/>
290 <xs:enumeration value="SendToDesktop"/>
291 <xs:enumeration value="SendToDesktopDown"/>
292 <xs:enumeration value="SendToDesktopLeft"/>
293 <xs:enumeration value="SendToDesktopNext"/>
294 <xs:enumeration value="SendToDesktopPrevious"/>
295 <xs:enumeration value="SendToDesktopRight"/>
296 <xs:enumeration value="SendToDesktopUp"/>
297 <xs:enumeration value="SendToNormalLayer"/>
298 <xs:enumeration value="SendToTopLayer"/>
299 <xs:enumeration value="Shade"/>
300 <xs:enumeration value="ShadeLower"/>
301 <xs:enumeration value="ShowDesktop"/>
302 <xs:enumeration value="ShowMenu"/>
303 <xs:enumeration value="ToggleAlwaysOnBottom"/>
304 <xs:enumeration value="ToggleAlwaysOnTop"/>
305 <xs:enumeration value="ToggleDecorations"/>
306 <xs:enumeration value="ToggleMaximizeFull"/>
307 <xs:enumeration value="ToggleMaximizeHorz"/>
308 <xs:enumeration value="ToggleMaximizeVert"/>
309 <xs:enumeration value="ToggleOmnipresent"/>
310 <xs:enumeration value="ToggleShade"/>
311 <xs:enumeration value="ToggleShowDesktop"/>
312 <xs:enumeration value="Unfocus"/>
313 <xs:enumeration value="UnmaximizeFull"/>
314 <xs:enumeration value="UnmaximizeHorz"/>
315 <xs:enumeration value="UnmaximizeVert"/>
316 <xs:enumeration value="Unshade"/>
317 <xs:enumeration value="UnshadeRaise"/>
318 <xs:enumeration value="UnShowDesktop"/>
319 </xs:restriction>
320 </xs:simpleType>
321 </xs:schema>
This page took 0.055201 seconds and 5 git commands to generate.