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