]> icculus.org git repositories - mikachu/openbox.git/blob - data/rc.xml.in
document the per app settings in rc.xml.in. some xsd fixes. add the "default" option...
[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>Clearlooks</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   <animateIconify>yes</animateIconify>
47   <font place="ActiveWindow">
48     <name>sans</name>
49     <size>7</size>
50     <!-- font size in points -->
51     <weight>bold</weight>
52     <!-- 'bold' or 'normal' -->
53     <slant>normal</slant>
54     <!-- 'italic' or 'normal' -->
55   </font>
56   <font place="InactiveWindow">
57     <name>sans</name>
58     <size>7</size>
59     <!-- font size in points -->
60     <weight>bold</weight>
61     <!-- 'bold' or 'normal' -->
62     <slant>normal</slant>
63     <!-- 'italic' or 'normal' -->
64   </font>
65   <font place="MenuHeader">
66     <name>sans</name>
67     <size>8</size>
68     <!-- font size in points -->
69     <weight>bold</weight>
70     <!-- 'bold' or 'normal' -->
71     <slant>normal</slant>
72     <!-- 'italic' or 'normal' -->
73   </font>
74   <font place="MenuItem">
75     <name>sans</name>
76     <size>9</size>
77     <!-- font size in points -->
78     <weight>bold</weight>
79     <!-- 'bold' or 'normal' -->
80     <slant>normal</slant>
81     <!-- 'italic' or 'normal' -->
82   </font>
83   <font place="OnScreenDisplay">
84     <name>sans</name>
85     <size>9</size>
86     <!-- font size in points -->
87     <weight>bold</weight>
88     <!-- 'bold' or 'normal' -->
89     <slant>normal</slant>
90     <!-- 'italic' or 'normal' -->
91   </font>
92 </theme>
93
94 <desktops>
95   <number>4</number>
96   <firstdesk>1</firstdesk>
97   <names>
98     <name>desktop one</name>
99     <name>desktop two</name>
100     <name>desktop three</name>
101     <name>desktop four</name>
102   </names>
103 </desktops>
104
105 <resize>
106   <drawContents>yes</drawContents>
107   <popupShow>Nonpixel</popupShow>
108   <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
109   <popupPosition>Center</popupPosition>
110   <!-- 'Center' or 'Top' -->
111 </resize>
112
113 <dock>
114   <position>TopLeft</position>
115   <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
116   <floatingX>0</floatingX>
117   <floatingY>0</floatingY>
118   <noStrut>no</noStrut>
119   <stacking>Above</stacking>
120   <!-- 'Above', 'Normal', or 'Below' -->
121   <direction>Vertical</direction>
122   <!-- 'Vertical' or 'Horizontal' -->
123   <autoHide>no</autoHide>
124   <hideDelay>300</hideDelay>
125   <showDelay>300</showDelay>
126   <moveButton>Middle</moveButton>
127 </dock>
128
129 <keyboard>
130   <chainQuitKey>C-g</chainQuitKey>
131
132   <keybind key="A-F10">
133     <action name="MaximizeFull"/>
134   </keybind>
135   <keybind key="A-F5">
136     <action name="UnmaximizeFull"/>
137   </keybind>
138   <keybind key="A-F12">
139     <action name="ToggleShade"/>
140   </keybind>
141   <keybind key="C-A-Left">
142     <action name="DesktopLeft"><wrap>no</wrap></action>
143   </keybind>
144   <keybind key="C-A-Right">
145     <action name="DesktopRight"><wrap>no</wrap></action>
146   </keybind>
147   <keybind key="C-A-Up">
148     <action name="DesktopUp"><wrap>no</wrap></action>
149   </keybind>
150   <keybind key="C-A-Down">
151     <action name="DesktopDown"><wrap>no</wrap></action>
152   </keybind>
153   <keybind key="S-A-Left">
154     <action name="SendToDesktopLeft"><wrap>no</wrap></action>
155   </keybind>
156   <keybind key="S-A-Right">
157     <action name="SendToDesktopRight"><wrap>no</wrap></action>
158   </keybind>
159   <keybind key="S-A-Up">
160     <action name="SendToDesktopUp"><wrap>no</wrap></action>
161   </keybind>
162   <keybind key="S-A-Down">
163     <action name="SendToDesktopDown"><wrap>no</wrap></action>
164   </keybind>
165   <keybind key="C-A-d">
166     <action name="ToggleShowDesktop"/>
167   </keybind>
168   <keybind key="A-F4">
169     <action name="Close"/>
170   </keybind>
171   <keybind key="A-Tab">
172     <action name="NextWindow"/>
173   </keybind>
174   <keybind key="A-S-Tab">
175     <action name="PreviousWindow"/>
176   </keybind>
177   <keybind key="C-A-Tab">
178     <action name="NextWindow"><panels>yes</panels></action>
179   </keybind>
180   <keybind key="C-A-S-Tab">
181     <action name="PreviousWindow"><panels>yes</panels></action>
182   </keybind>
183   <keybind key="A-F7">
184     <action name="Move"/>
185   </keybind>
186   <keybind key="A-F8">
187     <action name="Resize"/>
188   </keybind>
189   <keybind key="A-F9">
190     <action name="Iconify"/>
191   </keybind>
192   <keybind key="A-space">
193     <action name="ShowMenu"><menu>client-menu</menu></action>
194   </keybind>
195 </keyboard>
196
197 <mouse>
198   <dragThreshold>3</dragThreshold>
199   <doubleClickTime>200</doubleClickTime>
200
201   <context name="Frame">
202     <mousebind button="A-Left" action="Drag">
203       <action name="Move"/>
204     </mousebind>
205     <mousebind button="A-Left" action="Click">
206       <action name="Raise"/>
207     </mousebind>
208     <mousebind button="A-Left" action="Press">
209       <action name="Focus"/>
210     </mousebind>
211     <mousebind button="A-Middle" action="Drag">
212       <action name="Resize"/>
213     </mousebind> 
214     <mousebind button="A-Middle" action="Click">
215       <action name="Lower"/>
216     </mousebind>
217     <mousebind button="A-Right" action="Press">
218       <action name="ShowMenu"><menu>client-menu</menu></action>
219     </mousebind>
220     <mousebind button="A-Up" action="Click">
221       <action name="DesktopPrevious"/>
222     </mousebind>
223     <mousebind button="A-Down" action="Click">
224       <action name="DesktopNext"/>
225     </mousebind>
226     <mousebind button="C-A-Up" action="Click">
227       <action name="SendToDesktopPrevious"/>
228     </mousebind>
229     <mousebind button="C-A-Down" action="Click">
230       <action name="SendToDesktopNext"/>
231     </mousebind>
232   </context>
233   <context name="Titlebar">
234     <mousebind button="Left" action="Drag">
235       <action name="Move"/>
236     </mousebind>
237     <mousebind button="Left" action="Click">
238       <action name="Raise"/>
239     </mousebind>
240     <mousebind button="Left" action="Press">
241       <action name="Focus"/>
242     </mousebind>
243     <mousebind button="Left" action="DoubleClick">
244       <action name="ToggleShade"/>
245     </mousebind>
246     <mousebind button="Middle" action="Press">
247       <action name="Lower"/>
248     </mousebind>
249     <mousebind button="Up" action="Click">
250       <action name="Shade"/>
251     </mousebind>
252     <mousebind button="Down" action="Click">
253       <action name="Unshade"/>
254     </mousebind>
255     <mousebind button="Right" action="Press">
256       <action name="ShowMenu"><menu>client-menu</menu></action>
257     </mousebind>
258   </context>
259   <context name="Handle">
260     <mousebind button="Left" action="Drag">
261       <action name="Move"/>
262     </mousebind>
263     <mousebind button="Left" action="Click">
264       <action name="Raise"/>
265     </mousebind>
266     <mousebind button="Left" action="Press">
267       <action name="Focus"/>
268     </mousebind>
269     <mousebind button="Middle" action="Press">
270       <action name="Lower"/>
271     </mousebind>
272   </context>
273   <context name="BLCorner">
274     <mousebind button="Left" action="Drag">
275       <action name="Resize"/>
276     </mousebind>
277     <mousebind button="Left" action="Press">
278       <action name="Focus"/>
279     </mousebind>
280   </context>
281   <context name="BRCorner">
282     <mousebind button="Left" action="Drag">
283       <action name="Resize"/>
284     </mousebind>
285     <mousebind button="Left" action="Press">
286       <action name="Focus"/>
287     </mousebind>
288   </context>
289   <context name="TLCorner">
290     <mousebind button="Left" action="Drag">
291       <action name="Resize"/>
292     </mousebind>
293     <mousebind button="Left" action="Press">
294       <action name="Focus"/>
295     </mousebind>
296   </context>
297   <context name="TRCorner">
298     <mousebind button="Left" action="Drag">
299       <action name="Resize"/>
300     </mousebind>
301     <mousebind button="Left" action="Press">
302       <action name="Focus"/>
303     </mousebind>
304   </context>
305   <context name="Client">
306     <mousebind button="Left" action="Press">
307       <action name="Focus"/>
308       <action name="Raise"/>
309     </mousebind>
310     <mousebind button="Middle" action="Press">
311       <action name="Focus"/>
312     </mousebind>
313     <mousebind button="Right" action="Press">
314       <action name="Focus"/>
315     </mousebind>
316   </context>
317   <context name="Icon">
318     <mousebind button="Left" action="Press">
319       <action name="Focus"/>
320     </mousebind>
321     <mousebind button="Right" action="Press">
322       <action name="ShowMenu"><menu>client-menu</menu></action>
323     </mousebind>
324     <mousebind button="Left" action="Press">
325       <action name="ShowMenu"><menu>client-menu</menu></action>
326     </mousebind>
327   </context>
328   <context name="AllDesktops">
329     <mousebind button="Left" action="Press">
330       <action name="Focus"/>
331     </mousebind>
332     <mousebind button="Left" action="Click">
333       <action name="ToggleOmnipresent"/>
334     </mousebind>
335   </context>
336   <context name="Shade">
337     <mousebind button="Left" action="Press">
338       <action name="Focus"/>
339     </mousebind>
340     <mousebind button="Left" action="Click">
341       <action name="ToggleShade"/>
342     </mousebind>
343   </context>
344   <context name="Iconify">
345     <mousebind button="Left" action="Press">
346       <action name="Focus"/>
347     </mousebind>
348     <mousebind button="Left" action="Click">
349       <action name="Iconify"/>
350     </mousebind>
351   </context>
352   <context name="Maximize">
353     <mousebind button="Left" action="Press">
354       <action name="Focus"/>
355     </mousebind>
356     <mousebind button="Middle" action="Press">
357       <action name="Focus"/>
358     </mousebind>
359     <mousebind button="Right" action="Press">
360       <action name="Focus"/>
361     </mousebind>
362     <mousebind button="Left" action="Click">
363       <action name="ToggleMaximizeFull"/>
364     </mousebind>
365     <mousebind button="Middle" action="Click">
366       <action name="ToggleMaximizeVert"/>
367     </mousebind>
368     <mousebind button="Right" action="Click">
369       <action name="ToggleMaximizeHorz"/>
370     </mousebind>
371   </context>
372   <context name="Close">
373     <mousebind button="Left" action="Press">
374       <action name="Focus"/>
375     </mousebind>
376     <mousebind button="Left" action="Click">
377       <action name="Close"/>
378     </mousebind>
379   </context>
380   <context name="Desktop">
381     <mousebind button="Up" action="Press">
382       <action name="DesktopPrevious"/>
383     </mousebind>
384     <mousebind button="Down" action="Press">
385       <action name="DesktopNext"/>
386     </mousebind>
387     <mousebind button="A-Up" action="Press">
388       <action name="DesktopPrevious"/>
389     </mousebind>
390     <mousebind button="A-Down" action="Press">
391       <action name="DesktopNext"/>
392     </mousebind>
393     <mousebind button="Left" action="Press">
394       <action name="Focus"/>
395       <action name="Raise"/>
396     </mousebind> 
397     <mousebind button="Middle" action="Press">
398       <action name="ShowMenu"><menu>client-list-menu</menu></action>
399     </mousebind> 
400     <mousebind button="Right" action="Press">
401       <action name="ShowMenu"><menu>root-menu</menu></action>
402     </mousebind>
403   </context>
404   <context name="MoveResize">
405     <mousebind button="Up" action="Press">
406       <action name="DesktopPrevious"/>
407     </mousebind>
408     <mousebind button="Down" action="Press">
409       <action name="DesktopNext"/>
410     </mousebind>
411     <mousebind button="A-Up" action="Press">
412       <action name="DesktopPrevious"/>
413     </mousebind>
414     <mousebind button="A-Down" action="Press">
415       <action name="DesktopNext"/>
416     </mousebind>
417   </context>
418 </mouse>
419
420 <menu>
421   <!-- You can specify more than one menu file in here and they are all loaded,
422        just don't make menu ids clash or, well, it'll be kind of pointless -->
423
424   <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
425   <file>menu.xml</file>
426   <hideDelay>250</hideDelay>
427   <middle>no</middle>
428   <submenuShowDelay>0</submenuShowDelay>
429   <applicationIcons>yes</applicationIcons>
430 </menu>
431
432 <!-- this section is commented out.. remove this and the ending comment if you
433      want to use it -->
434 <applications>
435   <!-- the name or the class can be set, or both. this is used to match
436        windows when they appear
437
438        role can optionally be set, and only as much as you provide will be 
439        checked to see if it matches, eg. if you set role="abc" and the window's
440        role is actually "abcde" it would match.
441  -->
442   <application name="first element of window's WM_CLASS property (see xprop)"
443               class="second element of window's WM_CLASS property (see xprop)"
444                role="the window's WM_WINDOW_ROLE property (see xprop)">
445
446     <!-- each element can be left out or set to 'default' to specify to not 
447          change that attribute of the window -->
448
449     <decor>yes</decor>
450
451     <shade>no</shade>
452
453     <position>
454       <!-- the position is only used if both an x and y coordinate are provided
455            (and not set to 'default') -->
456       <x>center</x>
457       <!-- a number or 'center' to center on screen -->
458       <y>200</y>
459       <!-- a number or 'center' to center on screen -->
460       <head>0</head>
461       <!-- specifies the xinerama head, 'mouse' for wherever the mouse is -->
462     </position>
463
464     <focus>yes</focus>
465     <!-- if the window should try be given focus when it appears -->
466
467     <desktop>1</desktop>
468     <!-- 0 is the first desktop, 'all' for all desktops -->
469
470     <layer>normal</layer>
471     <!-- 'above', 'normal', or 'below' -->
472
473     <iconic>no</iconic>
474
475     <skip_pager>no</skip_pager>
476     <!-- asks to not be shown in pagers -->
477
478     <skip_taskbar>no</skip_taskbar>
479     <!-- asks to not be shown in taskbars. window cycling actions will also
480          skip past such windows -->
481
482     <fullscreen>yes</fullscreen>
483
484     <maximized>true</maximized>
485     <!-- 'Horizontal', 'Vertical' or boolean (yes/no/on/off/true/false) -->
486   </application>
487 </applications>
488  -->
489
490 </openbox_config>