]> icculus.org git repositories - mikachu/openbox.git/blob - data/rc.xml
kill the .in's for xml. we're not installing the xsd to the filesystem anymore anyways.
[mikachu/openbox.git] / data / rc.xml
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
10 <resistance>
11   <strength>10</strength>
12   <screen_edge_strength>20</screen_edge_strength>
13   <edges_hit_layers_below>no</edges_hit_layers_below>
14 </resistance>
15
16 <focus>
17   <focusNew>yes</focusNew>
18   <focusLast>no</focusLast>
19   <followMouse>no</followMouse>
20   <focusDelay>0</focusDelay>
21   <raiseOnFocus>no</raiseOnFocus>
22 </focus>
23
24 <placement>
25   <policy>Smart</policy>
26   <!-- 'Smart' or 'UnderMouse' -->
27 </placement>
28
29 <theme>
30   <name>Clearlooks</name>
31   <titleLayout>NLIMC</titleLayout>
32   <titleNumber>yes</titleNumber>
33   <!--
34       avaible characters are NDSLIMC, each can occur at most once.
35       N: client menu
36       L: window label (AKA title).
37       I: iconify
38       M: maximize
39       C: close
40       S: shade
41       D: omnipresent (on all desktops).
42   -->
43   <keepBorder>yes</keepBorder>
44   <animateIconify>yes</animateIconify>
45   <font place="ActiveWindow">
46     <name>sans</name>
47     <size>7</size>
48     <!-- font size in points -->
49     <weight>bold</weight>
50     <!-- 'bold' or 'normal' -->
51     <slant>normal</slant>
52     <!-- 'italic' or 'normal' -->
53   </font>
54   <font place="InactiveWindow">
55     <name>sans</name>
56     <size>7</size>
57     <!-- font size in points -->
58     <weight>bold</weight>
59     <!-- 'bold' or 'normal' -->
60     <slant>normal</slant>
61     <!-- 'italic' or 'normal' -->
62   </font>
63   <font place="MenuHeader">
64     <name>sans</name>
65     <size>8</size>
66     <!-- font size in points -->
67     <weight>bold</weight>
68     <!-- 'bold' or 'normal' -->
69     <slant>normal</slant>
70     <!-- 'italic' or 'normal' -->
71   </font>
72   <font place="MenuItem">
73     <name>sans</name>
74     <size>9</size>
75     <!-- font size in points -->
76     <weight>bold</weight>
77     <!-- 'bold' or 'normal' -->
78     <slant>normal</slant>
79     <!-- 'italic' or 'normal' -->
80   </font>
81   <font place="OnScreenDisplay">
82     <name>sans</name>
83     <size>9</size>
84     <!-- font size in points -->
85     <weight>bold</weight>
86     <!-- 'bold' or 'normal' -->
87     <slant>normal</slant>
88     <!-- 'italic' or 'normal' -->
89   </font>
90 </theme>
91
92 <desktops>
93   <!-- this stuff is only used at startup, pagers allow you to change them
94        during a session -->
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       <monitor>1</monitor>
461       <!-- specifies the monitor in a xinerama setup.
462            1 is the first head, or 'mouse' for wherever the mouse is -->
463     </position>
464
465     <focus>yes</focus>
466     <!-- if the window should try be given focus when it appears -->
467
468     <desktop>1</desktop>
469     <!-- 1 is the first desktop, 'all' for all desktops -->
470
471     <layer>normal</layer>
472     <!-- 'above', 'normal', or 'below' -->
473
474     <iconic>no</iconic>
475
476     <skip_pager>no</skip_pager>
477     <!-- asks to not be shown in pagers -->
478
479     <skip_taskbar>no</skip_taskbar>
480     <!-- asks to not be shown in taskbars. window cycling actions will also
481          skip past such windows -->
482
483     <fullscreen>yes</fullscreen>
484
485     <maximized>true</maximized>
486     <!-- 'Horizontal', 'Vertical' or boolean (yes/no/on/off/true/false) -->
487   </application>
488 </applications>
489  -->
490
491 </openbox_config>