some friendlier? desktop names
[dana/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     <weight>bold</weight>
51     <slant>normal</slant>
52   </font>
53   <font place="InactiveWindow">
54     <name>sans</name>
55     <size>7</size>
56     <weight>bold</weight>
57     <slant>normal</slant>
58   </font>
59   <font place="MenuHeader">
60     <name>sans</name>
61     <size>8</size>
62     <weight>bold</weight>
63     <slant>normal</slant>
64   </font>
65   <font place="MenuItem">
66     <name>sans</name>
67     <size>9</size>
68     <weight>bold</weight>
69     <slant>normal</slant>
70   </font>
71   <font place="OnScreenDisplay">
72     <name>sans</name>
73     <size>9</size>
74     <weight>bold</weight>
75     <slant>normal</slant>
76   </font>
77 </theme>
78
79 <desktops>
80   <number>4</number>
81   <firstdesk>1</firstdesk>
82   <names>
83     <name>desktop one</name>
84     <name>desktop two</name>
85     <name>desktop three</name>
86     <name>desktop four</name>
87   </names>
88 </desktops>
89
90 <resize>
91   <drawContents>yes</drawContents>
92   <popupShow>Nonpixel</popupShow>
93   <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
94   <popupPosition>Center</popupPosition>
95   <!-- 'Center' or 'Top' -->
96 </resize>
97
98 <dock>
99   <position>TopLeft</position>
100   <!-- (Top|Bottom)(Left|Right|)|Left|Right|Floating -->
101   <floatingX>0</floatingX>
102   <floatingY>0</floatingY>
103   <noStrut>no</noStrut>
104   <stacking>Above</stacking>
105   <direction>Vertical</direction>
106   <!-- 'Vertical' or 'Horizontal' -->
107   <autoHide>no</autoHide>
108   <hideDelay>300</hideDelay>
109   <showDelay>300</showDelay>
110   <moveButton>Middle</moveButton>
111 </dock>
112
113 <keyboard>
114   <chainQuitKey>C-g</chainQuitKey>
115
116   <keybind key="A-F10">
117     <action name="MaximizeFull"/>
118   </keybind>
119   <keybind key="A-F5">
120     <action name="UnmaximizeFull"/>
121   </keybind>
122   <keybind key="A-F12">
123     <action name="ToggleShade"/>
124   </keybind>
125   <keybind key="C-A-Left">
126     <action name="DesktopLeft"><wrap>no</wrap></action>
127   </keybind>
128   <keybind key="C-A-Right">
129     <action name="DesktopRight"><wrap>no</wrap></action>
130   </keybind>
131   <keybind key="C-A-Up">
132     <action name="DesktopUp"><wrap>no</wrap></action>
133   </keybind>
134   <keybind key="C-A-Down">
135     <action name="DesktopDown"><wrap>no</wrap></action>
136   </keybind>
137   <keybind key="S-A-Left">
138     <action name="SendToDesktopLeft"><wrap>no</wrap></action>
139   </keybind>
140   <keybind key="S-A-Right">
141     <action name="SendToDesktopRight"><wrap>no</wrap></action>
142   </keybind>
143   <keybind key="S-A-Up">
144     <action name="SendToDesktopUp"><wrap>no</wrap></action>
145   </keybind>
146   <keybind key="S-A-Down">
147     <action name="SendToDesktopDown"><wrap>no</wrap></action>
148   </keybind>
149   <keybind key="C-A-d">
150     <action name="ToggleShowDesktop"/>
151   </keybind>
152   <keybind key="A-F4">
153     <action name="Close"/>
154   </keybind>
155   <keybind key="A-Tab">
156     <action name="NextWindow"/>
157   </keybind>
158   <keybind key="A-S-Tab">
159     <action name="PreviousWindow"/>
160   </keybind>
161   <keybind key="C-A-Tab">
162     <action name="NextWindow"><panels>yes</panels></action>
163   </keybind>
164   <keybind key="C-A-S-Tab">
165     <action name="PreviousWindow"><panels>yes</panels></action>
166   </keybind>
167   <keybind key="A-F7">
168     <action name="Move"/>
169   </keybind>
170   <keybind key="A-F8">
171     <action name="Resize"/>
172   </keybind>
173   <keybind key="A-F9">
174     <action name="Iconify"/>
175   </keybind>
176   <keybind key="A-space">
177     <action name="ShowMenu"><menu>client-menu</menu></action>
178   </keybind>
179 </keyboard>
180
181 <mouse>
182   <dragThreshold>3</dragThreshold>
183   <doubleClickTime>200</doubleClickTime>
184
185   <context name="Frame">
186     <mousebind button="A-Left" action="Drag">
187       <action name="Move"/>
188     </mousebind>
189     <mousebind button="A-Left" action="Click">
190       <action name="Raise"/>
191     </mousebind>
192     <mousebind button="A-Left" action="Press">
193       <action name="Focus"/>
194     </mousebind>
195     <mousebind button="A-Middle" action="Drag">
196       <action name="Resize"/>
197     </mousebind> 
198     <mousebind button="A-Middle" action="Click">
199       <action name="Lower"/>
200     </mousebind>
201     <mousebind button="A-Right" action="Press">
202       <action name="ShowMenu"><menu>client-menu</menu></action>
203     </mousebind>
204     <mousebind button="A-Up" action="Click">
205       <action name="DesktopPrevious"/>
206     </mousebind>
207     <mousebind button="A-Down" action="Click">
208       <action name="DesktopNext"/>
209     </mousebind>
210     <mousebind button="C-A-Up" action="Click">
211       <action name="SendToDesktopPrevious"/>
212     </mousebind>
213     <mousebind button="C-A-Down" action="Click">
214       <action name="SendToDesktopNext"/>
215     </mousebind>
216   </context>
217   <context name="Titlebar">
218     <mousebind button="Left" action="Drag">
219       <action name="Move"/>
220     </mousebind>
221     <mousebind button="Left" action="Click">
222       <action name="Raise"/>
223     </mousebind>
224     <mousebind button="Left" action="Press">
225       <action name="Focus"/>
226     </mousebind>
227     <mousebind button="Left" action="DoubleClick">
228       <action name="ToggleShade"/>
229     </mousebind>
230     <mousebind button="Middle" action="Press">
231       <action name="Lower"/>
232     </mousebind>
233     <mousebind button="Up" action="Click">
234       <action name="Shade"/>
235     </mousebind>
236     <mousebind button="Down" action="Click">
237       <action name="Unshade"/>
238     </mousebind>
239     <mousebind button="Right" action="Press">
240       <action name="ShowMenu"><menu>client-menu</menu></action>
241     </mousebind>
242   </context>
243   <context name="Handle">
244     <mousebind button="Left" action="Drag">
245       <action name="Move"/>
246     </mousebind>
247     <mousebind button="Left" action="Click">
248       <action name="Raise"/>
249     </mousebind>
250     <mousebind button="Left" action="Press">
251       <action name="Focus"/>
252     </mousebind>
253     <mousebind button="Middle" action="Press">
254       <action name="Lower"/>
255     </mousebind>
256   </context>
257   <context name="BLCorner">
258     <mousebind button="Left" action="Drag">
259       <action name="Resize"/>
260     </mousebind>
261     <mousebind button="Left" action="Press">
262       <action name="Focus"/>
263     </mousebind>
264   </context>
265   <context name="BRCorner">
266     <mousebind button="Left" action="Drag">
267       <action name="Resize"/>
268     </mousebind>
269     <mousebind button="Left" action="Press">
270       <action name="Focus"/>
271     </mousebind>
272   </context>
273   <context name="TLCorner">
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="TRCorner">
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="Client">
290     <mousebind button="Left" action="Press">
291       <action name="Focus"/>
292       <action name="Raise"/>
293     </mousebind>
294     <mousebind button="Middle" action="Press">
295       <action name="Focus"/>
296     </mousebind>
297     <mousebind button="Right" action="Press">
298       <action name="Focus"/>
299     </mousebind>
300   </context>
301   <context name="Icon">
302     <mousebind button="Left" action="Press">
303       <action name="Focus"/>
304     </mousebind>
305     <mousebind button="Right" action="Press">
306       <action name="ShowMenu"><menu>client-menu</menu></action>
307     </mousebind>
308     <mousebind button="Left" action="Press">
309       <action name="ShowMenu"><menu>client-menu</menu></action>
310     </mousebind>
311   </context>
312   <context name="AllDesktops">
313     <mousebind button="Left" action="Press">
314       <action name="Focus"/>
315     </mousebind>
316     <mousebind button="Left" action="Click">
317       <action name="ToggleOmnipresent"/>
318     </mousebind>
319   </context>
320   <context name="Shade">
321     <mousebind button="Left" action="Press">
322       <action name="Focus"/>
323     </mousebind>
324     <mousebind button="Left" action="Click">
325       <action name="ToggleShade"/>
326     </mousebind>
327   </context>
328   <context name="Iconify">
329     <mousebind button="Left" action="Press">
330       <action name="Focus"/>
331     </mousebind>
332     <mousebind button="Left" action="Click">
333       <action name="Iconify"/>
334     </mousebind>
335   </context>
336   <context name="Maximize">
337     <mousebind button="Left" action="Press">
338       <action name="Focus"/>
339     </mousebind>
340     <mousebind button="Middle" action="Press">
341       <action name="Focus"/>
342     </mousebind>
343     <mousebind button="Right" action="Press">
344       <action name="Focus"/>
345     </mousebind>
346     <mousebind button="Left" action="Click">
347       <action name="ToggleMaximizeFull"/>
348     </mousebind>
349     <mousebind button="Middle" action="Click">
350       <action name="ToggleMaximizeVert"/>
351     </mousebind>
352     <mousebind button="Right" action="Click">
353       <action name="ToggleMaximizeHorz"/>
354     </mousebind>
355   </context>
356   <context name="Close">
357     <mousebind button="Left" action="Press">
358       <action name="Focus"/>
359     </mousebind>
360     <mousebind button="Left" action="Click">
361       <action name="Close"/>
362     </mousebind>
363   </context>
364   <context name="Desktop">
365     <mousebind button="Up" action="Press">
366       <action name="DesktopPrevious"/>
367     </mousebind>
368     <mousebind button="Down" action="Press">
369       <action name="DesktopNext"/>
370     </mousebind>
371     <mousebind button="A-Up" action="Press">
372       <action name="DesktopPrevious"/>
373     </mousebind>
374     <mousebind button="A-Down" action="Press">
375       <action name="DesktopNext"/>
376     </mousebind>
377     <mousebind button="Left" action="Press">
378       <action name="Focus"/>
379       <action name="Raise"/>
380     </mousebind> 
381     <mousebind button="Middle" action="Press">
382       <action name="ShowMenu"><menu>client-list-menu</menu></action>
383     </mousebind> 
384     <mousebind button="Right" action="Press">
385       <action name="ShowMenu"><menu>root-menu</menu></action>
386     </mousebind>
387   </context>
388   <context name="MoveResize">
389     <mousebind button="Up" action="Press">
390       <action name="DesktopPrevious"/>
391     </mousebind>
392     <mousebind button="Down" action="Press">
393       <action name="DesktopNext"/>
394     </mousebind>
395     <mousebind button="A-Up" action="Press">
396       <action name="DesktopPrevious"/>
397     </mousebind>
398     <mousebind button="A-Down" action="Press">
399       <action name="DesktopNext"/>
400     </mousebind>
401   </context>
402 </mouse>
403
404 <menu>
405   <!-- You can specify more than one menu file in here and they are all loaded,
406        just don't make menu ids clash or, well, it'll be kind of pointless -->
407
408   <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
409   <file>menu.xml</file>
410   <warpPointer>yes</warpPointer>
411   <xorStyle>yes</xorStyle>
412   <hideDelay>250</hideDelay>
413   <middle>no</middle>
414   <submenuShowDelay>0</submenuShowDelay>
415   <desktopMenuIcons>yes</desktopMenuIcons>
416   <!-- -->
417 </menu>
418
419 <applications>
420 <!--
421   <application name="this application does not exist">
422     <decor>yes</decor>
423     <shade>no</shade>
424     <position>
425       <x>center</x>
426       <y>200</y>
427     </position>
428     <focus>yes</focus>
429     <desktop>1</desktop>
430     <head>0</head>
431     # specifies xinerama head
432     <layer>normal</layer>
433     # 'above', 'normal', or 'below'
434     <iconic>no</iconic>
435     <skip_pager>no</skip_pager>
436     <skip_taskbar>no</skip_taskbar>
437     <fullscreen>yes</fullscreen>
438     <maximized>true</maximized>
439     # 'Horizontal', 'Vertical' or boolean (yes/no/on/off/true/false)
440   </application>
441  -->
442 </applications>
443
444 </openbox_config>