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