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