]> icculus.org git repositories - mikachu/openbox.git/blob - data/rc.xml.in
add the new font things to our example rc.xml and the xsd stylesheet
[mikachu/openbox.git] / data / rc.xml.in
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- Do not edit this file, it will be overwritten on install.
4         Copy the file to $HOME/.config/openbox/ instead. -->
5
6 <openbox_config xmlns="http://openbox.org/"
7         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8         xsi:schemaLocation="http://openbox.org/
9                 file://@xsddir@/rc.xsd">
10
11 <resistance>
12   <strength>10</strength>
13   <screen_edge_strength>20</screen_edge_strength>
14   <edges_hit_layers_below>no</edges_hit_layers_below>
15 </resistance>
16
17 <focus>
18   <focusNew>yes</focusNew>
19   <focusLast>no</focusLast>
20   <followMouse>no</followMouse>
21   <focusDelay>0</focusDelay>
22   <raiseOnFocus>no</raiseOnFocus>
23 </focus>
24
25 <placement>
26   <policy>Smart</policy>
27   <!-- 'Smart' or 'UnderMouse' -->
28 </placement>
29
30 <theme>
31   <name>bear2</name>
32   <titleLayout>NLIMC</titleLayout>
33   <titleNumber>yes</titleNumber>
34   <!--
35       avaible characters are NDSLIMC, each can occur at most once.
36       N: client menu
37       L: window label (AKA title).
38       I: iconify
39       M: maximize
40       C: close
41       S: shade
42       D: omnipresent (on all desktops).
43   -->
44   <keepBorder>yes</keepBorder>
45   <hideDisabled>no</hideDisabled>
46   <font place="ActiveWindow">
47     <name>arial,sans</name>
48     <size>7</size>
49     <weight>bold</weight>
50     <slant>normal</slant>
51     <shadow enabled="yes">
52       <offset>1</offset>
53       <tint>30</tint>
54     </shadow>
55   </font>
56   <font place="InactiveWindow">
57     <name>arial,sans</name>
58     <size>7</size>
59     <weight>bold</weight>
60     <slant>normal</slant>
61     <shadow enabled="yes">
62       <offset>1</offset>
63       <tint>30</tint>
64     </shadow>
65   </font>
66   <font place="MenuTitle">
67     <name>arial,sans</name>
68     <size>8</size>
69     <weight>bold</weight>
70     <slant>normal</slant>
71     <shadow enabled="yes">
72       <offset>1</offset>
73       <tint>30</tint>
74     </shadow>
75   </font>
76   <font place="MenuItem">
77     <name>arial,sans</name>
78     <size>8</size>
79     <weight>bold</weight>
80     <slant>normal</slant>
81     <shadow enabled="yes">
82       <offset>1</offset>
83       <tint>30</tint>
84     </shadow>
85   </font>
86 </theme>
87
88 <desktops>
89   <number>4</number>
90   <firstdesk>1</firstdesk>
91   <names>
92     <name>one</name>
93     <name>two</name>
94     <name>three</name>
95     <name>four</name>
96   </names>
97 </desktops>
98
99 <resize>
100   <drawContents>yes</drawContents>
101   <fourCorners>no</fourCorners>
102   <popupShow>Nonpixel</popupShow>
103   <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
104   <popupPosition>Center</popupPosition>
105   <!-- 'Center' or 'Top' -->
106 </resize>
107
108 <dock>
109   <position>TopLeft</position>
110   <!-- (Top|Bottom)(Left|Right|)|Left|Right|Floating -->
111   <floatingX>0</floatingX>
112   <floatingY>0</floatingY>
113   <noStrut>no</noStrut>
114   <stacking>Top</stacking>
115   <direction>Vertical</direction>
116   <!-- 'Vertical' or 'Horizontal' -->
117   <autoHide>no</autoHide>
118   <hideDelay>300</hideDelay>
119   <showDelay>300</showDelay>
120   <moveButton>Middle</moveButton>
121 </dock>
122
123 <keyboard>
124   <chainQuitKey>C-g</chainQuitKey>
125
126   <keybind key="A-F10">
127     <action name="MaximizeFull"/>
128   </keybind>
129   <keybind key="A-F5">
130     <action name="UnmaximizeFull"/>
131   </keybind>
132   <keybind key="A-F12">
133     <action name="ToggleShade"/>
134   </keybind>
135   <keybind key="C-A-Left">
136     <action name="DesktopLeft"><wrap>no</wrap></action>
137   </keybind>
138   <keybind key="C-A-Right">
139     <action name="DesktopRight"><wrap>no</wrap></action>
140   </keybind>
141   <keybind key="C-A-Up">
142     <action name="DesktopUp"><wrap>no</wrap></action>
143   </keybind>
144   <keybind key="C-A-Down">
145     <action name="DesktopDown"><wrap>no</wrap></action>
146   </keybind>
147   <keybind key="S-A-Left">
148     <action name="SendToDesktopLeft"><wrap>no</wrap></action>
149   </keybind>
150   <keybind key="S-A-Right">
151     <action name="SendToDesktopRight"><wrap>no</wrap></action>
152   </keybind>
153   <keybind key="S-A-Up">
154     <action name="SendToDesktopUp"><wrap>no</wrap></action>
155   </keybind>
156   <keybind key="S-A-Down">
157     <action name="SendToDesktopDown"><wrap>no</wrap></action>
158   </keybind>
159   <keybind key="C-A-d">
160     <action name="ToggleShowDesktop"/>
161   </keybind>
162   <keybind key="A-F4">
163     <action name="Close"/>
164   </keybind>
165   <keybind key="A-Tab">
166     <action name="NextWindow"/>
167   </keybind>
168   <keybind key="A-S-Tab">
169     <action name="PreviousWindow"/>
170   </keybind>
171   <keybind key="A-F7">
172     <action name="Move"/>
173   </keybind>
174   <keybind key="A-F8">
175     <action name="Resize"/>
176   </keybind>
177   <keybind key="A-F9">
178     <action name="Iconify"/>
179   </keybind>
180   <keybind key="A-space">
181     <action name="ShowMenu"><menu>client-menu</menu></action>
182   </keybind>
183 </keyboard>
184
185 <mouse>
186   <dragThreshold>3</dragThreshold>
187   <doubleClickTime>200</doubleClickTime>
188
189   <context name="Frame">
190     <mousebind button="A-Left" action="Drag">
191       <action name="Move"/>
192     </mousebind>
193     <mousebind button="A-Left" action="Click">
194       <action name="Raise"/>
195     </mousebind>
196     <mousebind button="A-Left" action="Press">
197       <action name="Focus"/>
198     </mousebind>
199     <mousebind button="A-Middle" action="Drag">
200       <action name="Resize"/>
201     </mousebind> 
202     <mousebind button="A-Middle" action="Click">
203       <action name="Lower"/>
204     </mousebind>
205     <mousebind button="A-Right" action="Press">
206       <action name="ShowMenu"><menu>client-menu</menu></action>
207     </mousebind>
208     <mousebind button="A-Up" action="Click">
209       <action name="DesktopPrevious"/>
210     </mousebind>
211     <mousebind button="A-Down" action="Click">
212       <action name="DesktopNext"/>
213     </mousebind>
214     <mousebind button="C-A-Up" action="Click">
215       <action name="SendToDesktopPrevious"/>
216     </mousebind>
217     <mousebind button="C-A-Down" action="Click">
218       <action name="SendToDesktopNext"/>
219     </mousebind>
220   </context>
221   <context name="Titlebar">
222     <mousebind button="Left" action="Drag">
223       <action name="Move"/>
224     </mousebind>
225     <mousebind button="Left" action="Click">
226       <action name="Raise"/>
227     </mousebind>
228     <mousebind button="Left" action="Press">
229       <action name="Focus"/>
230     </mousebind>
231     <mousebind button="Left" action="DoubleClick">
232       <action name="ToggleShade"/>
233     </mousebind>
234     <mousebind button="Middle" action="Press">
235       <action name="Lower"/>
236     </mousebind>
237     <mousebind button="Up" action="Click">
238       <action name="Shade"/>
239     </mousebind>
240     <mousebind button="Down" action="Click">
241       <action name="Unshade"/>
242     </mousebind>
243     <mousebind button="Right" action="Press">
244       <action name="ShowMenu"><menu>client-menu</menu></action>
245     </mousebind>
246   </context>
247   <context name="Handle">
248     <mousebind button="Left" action="Drag">
249       <action name="Move"/>
250     </mousebind>
251     <mousebind button="Left" action="Click">
252       <action name="Raise"/>
253     </mousebind>
254     <mousebind button="Left" action="Press">
255       <action name="Focus"/>
256     </mousebind>
257     <mousebind button="Middle" action="Press">
258       <action name="Lower"/>
259     </mousebind>
260   </context>
261   <context name="BLCorner">
262     <mousebind button="Left" action="Drag">
263       <action name="Resize"/>
264     </mousebind>
265     <mousebind button="Left" action="Press">
266       <action name="Focus"/>
267     </mousebind>
268   </context>
269   <context name="BRCorner">
270     <mousebind button="Left" action="Drag">
271       <action name="Resize"/>
272     </mousebind>
273     <mousebind button="Left" action="Press">
274       <action name="Focus"/>
275     </mousebind>
276   </context>
277   <context name="TLCorner">
278     <mousebind button="Left" action="Drag">
279       <action name="Resize"/>
280     </mousebind>
281     <mousebind button="Left" action="Press">
282       <action name="Focus"/>
283     </mousebind>
284   </context>
285   <context name="TRCorner">
286     <mousebind button="Left" action="Drag">
287       <action name="Resize"/>
288     </mousebind>
289     <mousebind button="Left" action="Press">
290       <action name="Focus"/>
291     </mousebind>
292   </context>
293   <context name="Client">
294     <mousebind button="Left" action="Press">
295       <action name="Focus"/>
296       <action name="Raise"/>
297     </mousebind>
298     <mousebind button="Middle" action="Press">
299       <action name="Focus"/>
300     </mousebind>
301     <mousebind button="Right" action="Press">
302       <action name="Focus"/>
303     </mousebind>
304   </context>
305   <context name="Icon">
306     <mousebind button="Left" action="Press">
307       <action name="Focus"/>
308     </mousebind>
309     <mousebind button="Right" action="Press">
310       <action name="ShowMenu"><menu>client-menu</menu></action>
311     </mousebind>
312     <mousebind button="Left" action="Press">
313       <action name="ShowMenu"><menu>client-menu</menu></action>
314     </mousebind>
315   </context>
316   <context name="AllDesktops">
317     <mousebind button="Left" action="Press">
318       <action name="Focus"/>
319     </mousebind>
320     <mousebind button="Left" action="Click">
321       <action name="ToggleOmnipresent"/>
322     </mousebind>
323   </context>
324   <context name="Shade">
325     <mousebind button="Left" action="Press">
326       <action name="Focus"/>
327     </mousebind>
328     <mousebind button="Left" action="Click">
329       <action name="ToggleShade"/>
330     </mousebind>
331   </context>
332   <context name="Iconify">
333     <mousebind button="Left" action="Press">
334       <action name="Focus"/>
335     </mousebind>
336     <mousebind button="Left" action="Click">
337       <action name="Iconify"/>
338     </mousebind>
339   </context>
340   <context name="Maximize">
341     <mousebind button="Left" action="Press">
342       <action name="Focus"/>
343     </mousebind>
344     <mousebind button="Middle" action="Press">
345       <action name="Focus"/>
346     </mousebind>
347     <mousebind button="Right" action="Press">
348       <action name="Focus"/>
349     </mousebind>
350     <mousebind button="Left" action="Click">
351       <action name="ToggleMaximizeFull"/>
352     </mousebind>
353     <mousebind button="Middle" action="Click">
354       <action name="ToggleMaximizeVert"/>
355     </mousebind>
356     <mousebind button="Right" action="Click">
357       <action name="ToggleMaximizeHorz"/>
358     </mousebind>
359   </context>
360   <context name="Close">
361     <mousebind button="Left" action="Press">
362       <action name="Focus"/>
363     </mousebind>
364     <mousebind button="Left" action="Click">
365       <action name="Close"/>
366     </mousebind>
367   </context>
368   <context name="Desktop">
369     <mousebind button="Up" action="Press">
370       <action name="DesktopPrevious"/>
371     </mousebind>
372     <mousebind button="Down" action="Press">
373       <action name="DesktopNext"/>
374     </mousebind>
375     <mousebind button="A-Up" action="Press">
376       <action name="DesktopPrevious"/>
377     </mousebind>
378     <mousebind button="A-Down" action="Press">
379       <action name="DesktopNext"/>
380     </mousebind>
381     <mousebind button="Left" action="Press">
382       <action name="Focus"/>
383       <action name="Raise"/>
384     </mousebind> 
385     <mousebind button="Middle" action="Press">
386       <action name="ShowMenu"><menu>client-list-menu</menu></action>
387     </mousebind> 
388     <mousebind button="Right" action="Press">
389       <action name="ShowMenu"><menu>root-menu</menu></action>
390     </mousebind>
391   </context>
392   <context name="MoveResize">
393     <mousebind button="Up" action="Press">
394       <action name="DesktopPrevious"/>
395     </mousebind>
396     <mousebind button="Down" action="Press">
397       <action name="DesktopNext"/>
398     </mousebind>
399     <mousebind button="A-Up" action="Press">
400       <action name="DesktopPrevious"/>
401     </mousebind>
402     <mousebind button="A-Down" action="Press">
403       <action name="DesktopNext"/>
404     </mousebind>
405   </context>
406 </mouse>
407
408 <menu>
409   <!-- You can specify more than one menu file in here and they are all loaded,
410        just don't make menu ids clash or, well, it'll be kind of pointless -->
411
412   <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
413   <file>menu.xml</file>
414   <warpPointer>yes</warpPointer>
415   <xorStyle>yes</xorStyle>
416   <hideDelay>250</hideDelay>
417   <middle>no</middle>
418   <submenuShowDelay>0</submenuShowDelay>
419   <desktopMenuIcons>yes</desktopMenuIcons>
420   <!-- -->
421 </menu>
422
423 <applications>
424 <!--
425   <application name="this application does not exist">
426     <decor>yes</decor>
427     <shade>no</shade>
428     <position>
429       <x>center</x>
430       <y>200</y>
431     </position>
432     <focus>yes</focus>
433     <desktop>1</desktop>
434     <head>0</head>
435     # specifies xinerama head
436     <layer>normal</layer>
437     # 'above', 'normal', or 'below'
438     <iconic>no</iconic>
439     <skip_pager>no</skip_pager>
440     <skip_taskbar>no</skip_taskbar>
441     <fullscreen>yes</fullscreen>
442     <maximized>true</maximized>
443     # 'Horizontal', 'Vertical' or boolean (yes/no/on/off/true/false)
444   </application>
445  -->
446 </applications>
447
448 </openbox_config>