config option for icons in desktop menus
[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   <followMouse>no</followMouse>
20   <focusLast>no</focusLast>
21   <focusDelay>0</focusDelay>
22   <raiseOnFocus>no</raiseOnFocus>
23 </focus>
24
25 <theme>
26   <name>TheBear</name>
27   <titlelayout>NLIMC</titlelayout>
28 </theme>
29
30 <placement>
31   <policy>Smart</policy>
32 </placement>
33
34 <desktops>
35   <number>4</number>
36   <firstdesk>1</firstdesk>
37   <names>
38     <name>one</name>
39     <name>two</name>
40     <name>three</name>
41     <name>four</name>
42   </names>
43 </desktops>
44
45 <resize>
46   <drawContents>yes</drawContents>
47 </resize>
48
49 <dock>
50   <position>TopLeft</position>
51   <stacking>Top</stacking>
52   <direction>Vertical</direction>
53   <floatingX>0</floatingX>
54   <floatingY>0</floatingY>
55   <autoHide>no</autoHide>
56   <hideDelay>300</hideDelay>
57   <desktopMenuIcons>yes</desktopMenuIcons>
58   <moveButton>A-Left</moveButton>
59 </dock>
60
61 <keyboard>
62   <chainQuitKey>C-g</chainQuitKey>
63
64   <keybind key="A-F10">
65     <action name="MaximizeFull"/>
66   </keybind>
67   <keybind key="A-F5">
68     <action name="UnmaximizeFull"/>
69   </keybind>
70   <keybind key="A-F12">
71     <action name="ToggleShade"/>
72   </keybind>
73   <keybind key="C-A-Left">
74     <action name="DesktopLeft"><wrap>no</wrap></action>
75   </keybind>
76   <keybind key="C-A-Right">
77     <action name="DesktopRight"><wrap>no</wrap></action>
78   </keybind>
79   <keybind key="C-A-Up">
80     <action name="DesktopUp"><wrap>no</wrap></action>
81   </keybind>
82   <keybind key="C-A-Down">
83     <action name="DesktopDown"><wrap>no</wrap></action>
84   </keybind>
85   <keybind key="S-A-Left">
86     <action name="SendToDesktopLeft"><wrap>no</wrap></action>
87   </keybind>
88   <keybind key="S-A-Right">
89     <action name="SendToDesktopRight"><wrap>no</wrap></action>
90   </keybind>
91   <keybind key="S-A-Up">
92     <action name="SendToDesktopUp"><wrap>no</wrap></action>
93   </keybind>
94   <keybind key="S-A-Down">
95     <action name="SendToDesktopDown"><wrap>no</wrap></action>
96   </keybind>
97   <keybind key="C-A-d">
98     <action name="ToggleShowDesktop"/>
99   </keybind>
100   <keybind key="A-F4">
101     <action name="Close"/>
102   </keybind>
103   <keybind key="A-Tab">
104     <action name="NextWindow"/>
105   </keybind>
106   <keybind key="A-S-Tab">
107     <action name="PreviousWindow"/>
108   </keybind>
109   <keybind key="A-F7">
110     <action name="Move"/>
111   </keybind>
112   <keybind key="A-F8">
113     <action name="Resize"/>
114   </keybind>
115   <keybind key="A-F9">
116     <action name="Iconify"/>
117   </keybind>
118   <keybind key="A-space">
119     <action name="ShowMenu"><menu>client-menu</menu></action>
120   </keybind>
121 </keyboard>
122
123 <mouse>
124   <dragThreshold>3</dragThreshold>
125   <doubleClickTime>200</doubleClickTime>
126
127   <context name="Frame">
128     <mousebind button="A-Left" action="Drag">
129       <action name="Move"/>
130     </mousebind>
131     <mousebind button="A-Left" action="Click">
132       <action name="Raise"/>
133     </mousebind>
134     <mousebind button="A-Left" action="Press">
135       <action name="Focus"/>
136     </mousebind>
137     <mousebind button="A-Middle" action="Drag">
138       <action name="Resize"/>
139     </mousebind> 
140     <mousebind button="A-Middle" action="Click">
141       <action name="Lower"/>
142     </mousebind>
143     <mousebind button="A-Right" action="Press">
144       <action name="ShowMenu"><menu>client-menu</menu></action>
145     </mousebind>
146     <mousebind button="A-Up" action="Click">
147       <action name="DesktopPrevious"/>
148     </mousebind>
149     <mousebind button="A-Down" action="Click">
150       <action name="DesktopNext"/>
151     </mousebind>
152     <mousebind button="C-A-Up" action="Click">
153       <action name="SendToDesktopPrevious"/>
154     </mousebind>
155     <mousebind button="C-A-Down" action="Click">
156       <action name="SendToDesktopNext"/>
157     </mousebind>
158   </context>
159   <context name="Titlebar">
160     <mousebind button="Left" action="Drag">
161       <action name="Move"/>
162     </mousebind>
163     <mousebind button="Left" action="Click">
164       <action name="Raise"/>
165     </mousebind>
166     <mousebind button="Left" action="Press">
167       <action name="Focus"/>
168     </mousebind>
169     <mousebind button="Left" action="DoubleClick">
170       <action name="ToggleShade"/>
171     </mousebind>
172     <mousebind button="Middle" action="Press">
173       <action name="Lower"/>
174     </mousebind>
175     <mousebind button="Up" action="Click">
176       <action name="Shade"/>
177     </mousebind>
178     <mousebind button="Down" action="Click">
179       <action name="Unshade"/>
180     </mousebind>
181     <mousebind button="Right" action="Press">
182       <action name="ShowMenu"><menu>client-menu</menu></action>
183     </mousebind>
184   </context>
185   <context name="Handle">
186     <mousebind button="Left" action="Drag">
187       <action name="Move"/>
188     </mousebind>
189     <mousebind button="Left" action="Click">
190       <action name="Raise"/>
191     </mousebind>
192     <mousebind button="Left" action="Press">
193       <action name="Focus"/>
194     </mousebind>
195     <mousebind button="Middle" action="Press">
196       <action name="Lower"/>
197     </mousebind>
198   </context>
199   <context name="BLCorner">
200     <mousebind button="Left" action="Drag">
201       <action name="Resize"/>
202     </mousebind>
203     <mousebind button="Left" action="Press">
204       <action name="Focus"/>
205     </mousebind>
206   </context>
207   <context name="BRCorner">
208     <mousebind button="Left" action="Drag">
209       <action name="Resize"/>
210     </mousebind>
211     <mousebind button="Left" action="Press">
212       <action name="Focus"/>
213     </mousebind>
214   </context>
215   <context name="TLCorner">
216     <mousebind button="Left" action="Drag">
217       <action name="Resize"/>
218     </mousebind>
219     <mousebind button="Left" action="Press">
220       <action name="Focus"/>
221     </mousebind>
222   </context>
223   <context name="TRCorner">
224     <mousebind button="Left" action="Drag">
225       <action name="Resize"/>
226     </mousebind>
227     <mousebind button="Left" action="Press">
228       <action name="Focus"/>
229     </mousebind>
230   </context>
231   <context name="Client">
232     <mousebind button="Left" action="Press">
233       <action name="Focus"/>
234       <action name="Raise"/>
235     </mousebind>
236     <mousebind button="Middle" action="Press">
237       <action name="Focus"/>
238     </mousebind>
239     <mousebind button="Right" action="Press">
240       <action name="Focus"/>
241     </mousebind>
242   </context>
243   <context name="Icon">
244     <mousebind button="Left" action="Press">
245       <action name="Focus"/>
246     </mousebind>
247     <mousebind button="Right" action="Press">
248       <action name="ShowMenu"><menu>client-menu</menu></action>
249     </mousebind>
250     <mousebind button="Left" action="Press">
251       <action name="ShowMenu"><menu>client-menu</menu></action>
252     </mousebind>
253   </context>
254   <context name="AllDesktops">
255     <mousebind button="Left" action="Press">
256       <action name="Focus"/>
257     </mousebind>
258     <mousebind button="Left" action="Click">
259       <action name="ToggleOmnipresent"/>
260     </mousebind>
261   </context>
262   <context name="Shade">
263     <mousebind button="Left" action="Press">
264       <action name="Focus"/>
265     </mousebind>
266     <mousebind button="Left" action="Click">
267       <action name="ToggleShade"/>
268     </mousebind>
269   </context>
270   <context name="Iconify">
271     <mousebind button="Left" action="Press">
272       <action name="Focus"/>
273     </mousebind>
274     <mousebind button="Left" action="Click">
275       <action name="Iconify"/>
276     </mousebind>
277   </context>
278   <context name="Maximize">
279     <mousebind button="Left" action="Press">
280       <action name="Focus"/>
281     </mousebind>
282     <mousebind button="Middle" action="Press">
283       <action name="Focus"/>
284     </mousebind>
285     <mousebind button="Right" action="Press">
286       <action name="Focus"/>
287     </mousebind>
288     <mousebind button="Left" action="Click">
289       <action name="ToggleMaximizeFull"/>
290     </mousebind>
291     <mousebind button="Middle" action="Click">
292       <action name="ToggleMaximizeVert"/>
293     </mousebind>
294     <mousebind button="Right" action="Click">
295       <action name="ToggleMaximizeHorz"/>
296     </mousebind>
297   </context>
298   <context name="Close">
299     <mousebind button="Left" action="Press">
300       <action name="Focus"/>
301     </mousebind>
302     <mousebind button="Left" action="Click">
303       <action name="Close"/>
304     </mousebind>
305   </context>
306   <context name="Desktop">
307     <mousebind button="Up" action="Press">
308       <action name="DesktopPrevious"/>
309     </mousebind>
310     <mousebind button="Down" action="Press">
311       <action name="DesktopNext"/>
312     </mousebind>
313     <mousebind button="A-Up" action="Press">
314       <action name="DesktopPrevious"/>
315     </mousebind>
316     <mousebind button="A-Down" action="Press">
317       <action name="DesktopNext"/>
318     </mousebind>
319     <mousebind button="Left" action="Press">
320       <action name="Focus"/>
321       <action name="Raise"/>
322     </mousebind> 
323     <mousebind button="Middle" action="Press">
324       <action name="ShowMenu"><menu>client-list-menu</menu></action>
325     </mousebind> 
326     <mousebind button="Right" action="Press">
327       <action name="ShowMenu"><menu>root-menu</menu></action>
328     </mousebind>
329   </context>
330   <context name="MoveResize">
331     <mousebind button="Up" action="Press">
332       <action name="DesktopPrevious"/>
333     </mousebind>
334     <mousebind button="Down" action="Press">
335       <action name="DesktopNext"/>
336     </mousebind>
337     <mousebind button="A-Up" action="Press">
338       <action name="DesktopPrevious"/>
339     </mousebind>
340     <mousebind button="A-Down" action="Press">
341       <action name="DesktopNext"/>
342     </mousebind>
343   </context>
344 </mouse>
345
346 <menu>
347   <!-- You can specify more than one menu file in here and they are all loaded,
348        just don't make menu ids clash or, well, it'll be kind of pointless -->
349
350   <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
351   <file>menu.xml</file>
352 </menu>
353
354 </openbox_config>