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