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