]> icculus.org git repositories - dana/openbox.git/blob - data/rc3
add a root menu
[dana/openbox.git] / data / rc3
1 <?xml version="1.0"?>
2
3 <!-- Do not edit this file, it will be overwritten on install. Edit the file
4      in $HOME/.openbox/ instead. -->
5
6 <openbox_config>
7
8 <resistance>
9   <strength>10</strength>
10   <windows>yes</windows>
11 </resistance>
12
13 <placement>
14   <remember>yes</remember>
15 </placement>
16
17 <focus>
18   <focusNew>yes</focusNew>
19   <followMouse>no</followMouse>
20   <focusLast>yes</focusLast>
21   <focusLastOnDesktop>yes</focusLastOnDesktop>
22   <cyclingDialog>yes</cyclingDialog>
23 </focus>
24
25 <theme>
26   <theme>operation</theme>
27 </theme>
28
29 <desktops>
30   <number>4</number>
31   <names>
32     <name>one</name>
33     <name>two</name>
34     <name>three</name>
35     <name>four</name>
36   </names>
37 </desktops>
38
39 <moveresize>
40   <opaqueMove>yes</opaqueMove>
41   <opaqueResize>yes</opaqueResize>
42 </moveresize>
43
44 <dock>
45   <position>topleft</position>
46   <stacking>top</stacking>
47   <direction>vertical</direction>
48   <floatingX>0</floatingX>
49   <floatingY>0</floatingY>
50   <autoHide>no</autoHide>
51   <hideTimeout>300</hideTimeout>
52 </dock>
53
54 <keyboard>
55   <keybind key="A-F10">
56     <action name="MaximizeFull"></action>
57   </keybind>
58   <keybind key="A-F5">
59     <action name="UnmaximizeFull"></action>
60   </keybind>
61   <keybind key="A-F12">
62     <action name="ToggleShade"></action>
63   </keybind>
64   <keybind key="C-A-Left">
65     <action name="DesktopLeft"></action>
66   </keybind>
67   <keybind key="C-A-Right">
68     <action name="DesktopRight"></action>
69   </keybind>
70   <keybind key="C-A-Up">
71     <action name="DesktopUp"></action>
72   </keybind>
73   <keybind key="C-A-Down">
74     <action name="DesktopDown"></action>
75   </keybind>
76   <keybind key="S-A-Left">
77     <action name="SendToDesktopLeft"></action>
78   </keybind>
79   <keybind key="S-A-Right">
80     <action name="SendToDesktopRight"></action>
81   </keybind>
82   <keybind key="S-A-Up">
83     <action name="SendToDesktopUp"></action>
84   </keybind>
85   <keybind key="S-A-Down">
86     <action name="SendToDesktopDown"></action>
87   </keybind>
88   <keybind key="C-A-d">
89     <action name="ToggleShowDesktop"></action>
90   </keybind>
91   <keybind key="A-F4">
92     <action name="Close"></action>
93   </keybind>
94   <keybind key="A-Tab">
95     <action name="NextWindow"></action>
96   </keybind>
97   <keybind key="A-S-Tab">
98     <action name="PreviousWindow"></action>
99   </keybind>
100   <keybind key="A-F7">
101     <action name="KeyboardMove"></action>
102   </keybind>
103   <keybind key="A-F8">
104     <action name="KeyboardResize"></action>
105   </keybind>
106   <keybind key="A-F9">
107     <action name="Iconify"></action>
108   </keybind>
109 </keyboard>
110
111 <mouse>
112   <dragThreshold>3</dragThreshold>
113   <doubleClickTime>200</doubleClickTime>
114
115   <context name="frame">
116     <mousebind button="A-Left" action="drag">
117       <action name="move"/>
118     </mousebind>
119     <mousebind button="A-Left" action="click">
120       <action name="raise"/>
121     </mousebind>
122     <mousebind button="A-Left" action="press">
123       <action name="focus"/>
124     </mousebind>
125     <mousebind button="A-Middle" action="drag">
126       <action name="resize"/>
127     </mousebind> 
128     <mousebind button="A-Middle" action="click">
129       <action name="lower"/>
130     </mousebind>
131     <mousebind button="A-Right" action="press">
132       <action name="showmenu"><menu>client-menu</menu></action>
133     </mousebind>
134     <mousebind button="A-Up" action="click">
135       <action name="desktopright"/>
136     </mousebind>
137     <mousebind button="A-Down" action="click">
138       <action name="desktopleft"/>
139     </mousebind>
140     <mousebind button="C-A-Up" action="click">
141       <action name="sendtodesktopright"/>
142     </mousebind>
143     <mousebind button="C-A-Down" action="click">
144       <action name="sendtodesktopleft"/>
145     </mousebind>
146   </context>
147   <context name="titlebar">
148     <mousebind button="Left" action="drag">
149       <action name="move"/>
150     </mousebind>
151     <mousebind button="Left" action="click">
152       <action name="raise"/>
153     </mousebind>
154     <mousebind button="Left" action="press">
155       <action name="focus"/>
156     </mousebind>
157     <mousebind button="Left" action="doubleclick">
158       <action name="toggleshade"/>
159     </mousebind>
160     <mousebind button="Middle" action="press">
161       <action name="lower"/>
162     </mousebind>
163     <mousebind button="Up" action="click">
164       <action name="shade"/>
165     </mousebind>
166     <mousebind button="Down" action="click">
167       <action name="unshade"/>
168     </mousebind>
169     <mousebind button="Right" action="press">
170       <action name="showmenu"><menu>client-menu</menu></action>
171     </mousebind>
172   </context>
173   <context name="handle">
174     <mousebind button="Left" action="drag">
175       <action name="move"/>
176     </mousebind>
177     <mousebind button="Left" action="click">
178       <action name="raise"/>
179     </mousebind>
180     <mousebind button="Left" action="press">
181       <action name="focus"/>
182     </mousebind>
183     <mousebind button="Middle" action="press">
184       <action name="lower"/>
185     </mousebind>
186   </context>
187   <context name="blcorner">
188     <mousebind button="Left" action="drag">
189       <action name="resize"/>
190     </mousebind>
191     <mousebind button="Left" action="press">
192       <action name="focus"/>
193     </mousebind>
194   </context>
195   <context name="brcorner">
196     <mousebind button="Left" action="drag">
197       <action name="resize"/>
198     </mousebind>
199     <mousebind button="Left" action="press">
200       <action name="focus"/>
201     </mousebind>
202   </context>
203   <context name="client">
204     <mousebind button="Left" action="press">
205       <action name="focus"/>
206       <action name="raise"/>
207     </mousebind>
208     <mousebind button="Middle" action="press">
209       <action name="focus"/>
210     </mousebind>
211     <mousebind button="Right" action="press">
212       <action name="focus"/>
213     </mousebind>
214   </context>
215   <context name="icon">
216     <mousebind button="Left" action="press">
217       <action name="focus"/>
218     </mousebind>
219     <mousebind button="Left" action="click">
220       <action name="showmenu"><menu>client-menu</menu></action>
221     </mousebind>
222     <mousebind button="Left" action="doubleclick">
223       <action name="close"/>
224     </mousebind>
225   </context>
226   <context name="alldesktops">
227     <mousebind button="Left" action="press">
228       <action name="focus"/>
229     </mousebind>
230     <mousebind button="Left" action="click">
231       <action name="toggleomnipresent"/>
232     </mousebind>
233   </context>
234   <context name="shade">
235     <mousebind button="Left" action="press">
236       <action name="focus"/>
237     </mousebind>
238     <mousebind button="Left" action="click">
239       <action name="toggleshade"/>
240     </mousebind>
241   </context>
242   <context name="iconify">
243     <mousebind button="Left" action="press">
244       <action name="focus"/>
245     </mousebind>
246     <mousebind button="Left" action="click">
247       <action name="iconify"/>
248     </mousebind>
249   </context>
250   <context name="maximize">
251     <mousebind button="Left" action="press">
252       <action name="focus"/>
253     </mousebind>
254     <mousebind button="Middle" action="press">
255       <action name="focus"/>
256     </mousebind>
257     <mousebind button="Right" action="press">
258       <action name="focus"/>
259     </mousebind>
260     <mousebind button="Left" action="click">
261       <action name="togglemaximizefull"/>
262     </mousebind>
263     <mousebind button="Middle" action="click">
264       <action name="togglemaximizevert"/>
265     </mousebind>
266     <mousebind button="Right" action="click">
267       <action name="togglemaximizehorz"/>
268     </mousebind>
269   </context>
270   <context name="close">
271     <mousebind button="Left" action="press">
272       <action name="focus"/>
273     </mousebind>
274     <mousebind button="Left" action="click">
275       <action name="close"/>
276     </mousebind>
277   </context>
278   <context name="root">
279     <mousebind button="Up" action="click">
280       <action name="desktopright"/>
281     </mousebind>
282     <mousebind button="Down" action="click">
283       <action name="desktopleft"/>
284     </mousebind>
285     <mousebind button="A-Up" action="click">
286       <action name="desktopright"/>
287     </mousebind>
288     <mousebind button="A-Down" action="click">
289       <action name="desktopleft"/>
290     </mousebind>
291     <mousebind button="Middle" action="press">
292       <action name="showmenu"><menu>root</menu></action>
293     </mousebind>
294   </context>
295 </mouse>
296
297 <menu id="root" label="Openbox 3">
298   <menu id="apps" label="Applications">
299     <item label="Xterm">
300       <action name="execute"><execute>xterm</execute></action>
301     </item>
302     <item label="Mozilla">
303       <action name="execute"><execute>mozilla</execute></action>
304     </item>
305     <item label="Gaim">
306       <action name="execute"><execute>gaim</execute></action>
307     </item>
308     <item label="Quark">
309       <action name="execute"><execute>strange-quark</execute></action>
310     </item>
311   </menu>
312   <menu id="games" label="Games">
313     <item label="Crack-Attack">
314       <action name="execute"><execute>crack-attack</execute></action>
315     </item>
316     <item label="XFRisk">
317       <action name="execute"><execute>xfrisk</execute></action>
318     </item>
319     <item label="Quake III">
320       <action name="execute"><execute>quake3</execute></action>
321     </item>
322   </menu>
323   <item label="--" /> <!-- separator -->
324   <menu id="switch" label="Switch To">
325     <item label="Openbox 2">
326       <action name="restart"><execute>openbox</execute></action>
327     </item>
328   </menu>
329   <item label="Restart">
330     <action name="restart" />
331   </item>
332   <item label="Exit">
333     <action name="exit" />
334   </item>
335 </menu>
336
337 </openbox_config>