titleNumber disappeared a while ago
[dana/openbox.git] / data / rc.xml
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/4.0/rc">
7
8 <resistance>
9   <strength>10</strength>
10   <screen_edge_strength>20</screen_edge_strength>
11 </resistance>
12
13 <focus>
14   <focusNew>yes</focusNew>
15   <focusLast>yes</focusLast>
16   <followMouse>no</followMouse>
17   <focusDelay>200</focusDelay>
18   <raiseOnFocus>no</raiseOnFocus>
19 </focus>
20
21 <placement>
22   <policy>Smart</policy>
23   <!-- 'Smart' or 'UnderMouse' -->
24 </placement>
25
26 <theme>
27   <name>Clearlooks</name>
28   <titleLayout>NLIMC</titleLayout>
29   <!--
30       avaible characters are NDSLIMC, each can occur at most once.
31       N: window icon
32       L: window label (AKA title).
33       I: iconify
34       M: maximize
35       C: close
36       S: shade (roll up/down)
37       D: omnipresent (on all desktops).
38   -->
39   <keepBorder>yes</keepBorder>
40   <animateIconify>yes</animateIconify>
41   <font place="ActiveWindow">
42     <name>sans</name>
43     <size>8</size>
44     <!-- font size in points -->
45     <weight>bold</weight>
46     <!-- 'bold' or 'normal' -->
47     <slant>normal</slant>
48     <!-- 'italic' or 'normal' -->
49   </font>
50   <font place="InactiveWindow">
51     <name>sans</name>
52     <size>8</size>
53     <!-- font size in points -->
54     <weight>bold</weight>
55     <!-- 'bold' or 'normal' -->
56     <slant>normal</slant>
57     <!-- 'italic' or 'normal' -->
58   </font>
59   <font place="MenuHeader">
60     <name>sans</name>
61     <size>9</size>
62     <!-- font size in points -->
63     <weight>normal</weight>
64     <!-- 'bold' or 'normal' -->
65     <slant>normal</slant>
66     <!-- 'italic' or 'normal' -->
67   </font>
68   <font place="MenuItem">
69     <name>sans</name>
70     <size>9</size>
71     <!-- font size in points -->
72     <weight>normal</weight>
73     <!-- 'bold' or 'normal' -->
74     <slant>normal</slant>
75     <!-- 'italic' or 'normal' -->
76   </font>
77   <font place="OnScreenDisplay">
78     <name>sans</name>
79     <size>9</size>
80     <!-- font size in points -->
81     <weight>bold</weight>
82     <!-- 'bold' or 'normal' -->
83     <slant>normal</slant>
84     <!-- 'italic' or 'normal' -->
85   </font>
86 </theme>
87
88 <desktops>
89   <!-- this stuff is only used at startup, pagers allow you to change them
90        during a session
91
92        these are default values to use when other ones are not already set
93        by other applications, or saved in your session
94
95        use obconf if you want to change these without having to log out
96        and back in -->
97   <number>4</number>
98   <firstdesk>1</firstdesk>
99   <names>
100     <!-- set names up here if you want to, like this:
101     <name>desktop 1</name>
102     <name>desktop 2</name>
103     -->
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   <!-- in milliseconds (1000 = 1 second) -->
128   <showDelay>300</showDelay>
129   <!-- in milliseconds (1000 = 1 second) -->
130   <moveButton>Middle</moveButton>
131   <!-- 'Left', 'Middle', 'Right' -->
132 </dock>
133
134 <keyboard>
135   <chainQuitKey>C-g</chainQuitKey>
136
137   <!-- Keybindings for desktop switching -->
138   <keybind key="C-A-Left">
139     <action name="DesktopLeft"><wrap>no</wrap></action>
140   </keybind>
141   <keybind key="C-A-Right">
142     <action name="DesktopRight"><wrap>no</wrap></action>
143   </keybind>
144   <keybind key="C-A-Up">
145     <action name="DesktopUp"><wrap>no</wrap></action>
146   </keybind>
147   <keybind key="C-A-Down">
148     <action name="DesktopDown"><wrap>no</wrap></action>
149   </keybind>
150   <keybind key="S-A-Left">
151     <action name="SendToDesktopLeft"><wrap>no</wrap></action>
152   </keybind>
153   <keybind key="S-A-Right">
154     <action name="SendToDesktopRight"><wrap>no</wrap></action>
155   </keybind>
156   <keybind key="S-A-Up">
157     <action name="SendToDesktopUp"><wrap>no</wrap></action>
158   </keybind>
159   <keybind key="S-A-Down">
160     <action name="SendToDesktopDown"><wrap>no</wrap></action>
161   </keybind>
162   <keybind key="W-F1">
163     <action name="Desktop"><desktop>1</desktop></action>
164   </keybind>
165   <keybind key="W-F2">
166     <action name="Desktop"><desktop>2</desktop></action>
167   </keybind>
168   <keybind key="W-F3">
169     <action name="Desktop"><desktop>3</desktop></action>
170   </keybind>
171   <keybind key="W-F4">
172     <action name="Desktop"><desktop>4</desktop></action>
173   </keybind>
174   <keybind key="W-d">
175     <action name="ToggleShowDesktop"/>
176   </keybind>
177
178   <!-- Keybindings for windows -->
179   <keybind key="A-F4">
180     <action name="Close"/>
181   </keybind>
182   <keybind key="A-Escape">
183     <action name="Lower"/>
184     <action name="FocusToBottom"/>
185     <action name="Unfocus"/>
186   </keybind>
187   <keybind key="A-space">
188     <action name="ShowMenu"><menu>client-menu</menu></action>
189   </keybind>
190
191   <!-- Keybindings for window switching -->
192   <keybind key="A-Tab">
193     <action name="NextWindow"/>
194   </keybind>
195   <keybind key="A-S-Tab">
196     <action name="PreviousWindow"/>
197   </keybind>
198   <keybind key="C-A-Tab">
199     <action name="NextWindow">
200       <panels>yes</panels><desktop>yes</desktop>
201     </action>
202   </keybind>
203
204   <!-- Keybindings for running applications -->
205   <keybind key="W-e">
206     <action name="Execute">
207       <startupnotify>
208         <enabled>true</enabled>
209         <name>Konqueror</name>
210       </startupnotify>
211       <execute>kfmclient openProfile filemanagement</execute>
212     </action>
213   </keybind>
214 </keyboard>
215
216 <mouse>
217   <dragThreshold>3</dragThreshold>
218   <!-- number of pixels the mouse must move before a drag begins -->
219   <doubleClickTime>200</doubleClickTime>
220   <!-- in milliseconds (1000 = 1 second) -->
221
222   <context name="Frame">
223     <mousebind button="A-Left" action="Press">
224       <action name="Activate"/>
225     </mousebind>
226     <mousebind button="A-Left" action="Drag">
227       <action name="Move"/>
228     </mousebind>
229
230     <mousebind button="A-Right" action="Press">
231       <action name="Activate"/>
232     </mousebind>
233     <mousebind button="A-Right" action="Drag">
234       <action name="Resize"/>
235     </mousebind> 
236
237     <mousebind button="A-Middle" action="Press">
238       <action name="Lower"/>
239       <action name="FocusToBottom"/>
240       <action name="Unfocus"/>
241     </mousebind>
242
243     <mousebind button="A-Up" action="Click">
244       <action name="DesktopPrevious"/>
245     </mousebind>
246     <mousebind button="A-Down" action="Click">
247       <action name="DesktopNext"/>
248     </mousebind>
249     <mousebind button="A-S-Up" action="Click">
250       <action name="SendToDesktopPrevious"/>
251     </mousebind>
252     <mousebind button="A-S-Down" action="Click">
253       <action name="SendToDesktopNext"/>
254     </mousebind>
255   </context>
256
257   <context name="Titlebar">
258     <mousebind button="Left" action="Press">
259       <action name="Activate"/>
260     </mousebind>
261     <mousebind button="Left" action="Drag">
262       <action name="Move"/>
263     </mousebind>
264     <mousebind button="Left" action="DoubleClick">
265       <action name="ToggleMaximizeFull"/>
266     </mousebind>
267
268     <mousebind button="Middle" action="Press">
269       <action name="Lower"/>
270       <action name="FocusToBottom"/>
271       <action name="Unfocus"/>
272     </mousebind>
273
274     <mousebind button="Up" action="Click">
275       <action name="Shade"/>
276       <action name="FocusToBottom"/>
277       <action name="Unfocus"/>
278     </mousebind>
279     <mousebind button="Down" action="Click">
280       <action name="Unshade"/>
281     </mousebind>
282
283     <mousebind button="Right" action="Press">
284       <action name="Activate"/>
285       <action name="ShowMenu"><menu>client-menu</menu></action>
286     </mousebind>
287   </context>
288
289   <context name="Top">
290     <mousebind button="Left" action="Press">
291       <action name="Activate"/>
292     </mousebind>
293     <mousebind button="Left" action="Drag">
294       <action name="Resize"><edge>top</edge></action>
295     </mousebind>
296   </context>
297
298   <context name="Left">
299     <mousebind button="Left" action="Press">
300       <action name="Activate"/>
301     </mousebind>
302     <mousebind button="Left" action="Drag">
303       <action name="Resize"><edge>left</edge></action>
304     </mousebind>
305   </context>
306
307   <context name="Right">
308     <mousebind button="Left" action="Press">
309       <action name="Activate"/>
310     </mousebind>
311     <mousebind button="Left" action="Drag">
312       <action name="Resize"><edge>right</edge></action>
313     </mousebind>
314   </context>
315
316   <context name="Bottom">
317     <mousebind button="Left" action="Press">
318       <action name="Activate"/>
319     </mousebind>
320     <mousebind button="Left" action="Drag">
321       <action name="Resize"><edge>bottom</edge></action>
322     </mousebind>
323
324     <mousebind button="Middle" action="Press">
325       <action name="Lower"/>
326       <action name="FocusToBottom"/>
327       <action name="Unfocus"/>
328     </mousebind>
329
330     <mousebind button="Right" action="Press">
331       <action name="Activate"/>
332       <action name="ShowMenu"><menu>client-menu</menu></action>
333     </mousebind>
334   </context>
335
336   <context name="BLCorner">
337     <mousebind button="Left" action="Press">
338       <action name="Activate"/>
339     </mousebind>
340     <mousebind button="Left" action="Drag">
341       <action name="Resize"/>
342     </mousebind>
343   </context>
344
345   <context name="BRCorner">
346     <mousebind button="Left" action="Press">
347       <action name="Activate"/>
348     </mousebind>
349     <mousebind button="Left" action="Drag">
350       <action name="Resize"/>
351     </mousebind>
352   </context>
353
354   <context name="TLCorner">
355     <mousebind button="Left" action="Press">
356       <action name="Activate"/>
357     </mousebind>
358     <mousebind button="Left" action="Drag">
359       <action name="Resize"/>
360     </mousebind>
361   </context>
362
363   <context name="TRCorner">
364     <mousebind button="Left" action="Press">
365       <action name="Activate"/>
366     </mousebind>
367     <mousebind button="Left" action="Drag">
368       <action name="Resize"/>
369     </mousebind>
370   </context>
371
372   <context name="Client">
373     <mousebind button="Left" action="Press">
374       <action name="Activate"/>
375     </mousebind>
376     <mousebind button="Middle" action="Press">
377       <action name="Activate"/>
378     </mousebind>
379     <mousebind button="Right" action="Press">
380       <action name="Activate"/>
381     </mousebind>
382   </context>
383
384   <context name="Icon">
385     <mousebind button="Left" action="Press">
386       <action name="Activate"/>
387       <action name="ShowMenu"><menu>client-menu</menu></action>
388     </mousebind>
389     <mousebind button="Right" action="Press">
390       <action name="Activate"/>
391       <action name="ShowMenu"><menu>client-menu</menu></action>
392     </mousebind>
393   </context>
394
395   <context name="AllDesktops">
396     <mousebind button="Left" action="Press">
397       <action name="Activate"/>
398     </mousebind>
399     <mousebind button="Left" action="Click">
400       <action name="ToggleOmnipresent"/>
401     </mousebind>
402   </context>
403
404   <context name="Shade">
405     <mousebind button="Left" action="Press">
406       <action name="Activate"/>
407     </mousebind>
408     <mousebind button="Left" action="Click">
409       <action name="ToggleShade"/>
410     </mousebind>
411   </context>
412
413   <context name="Iconify">
414     <mousebind button="Left" action="Press">
415       <action name="Activate"/>
416     </mousebind>
417     <mousebind button="Left" action="Click">
418       <action name="Iconify"/>
419     </mousebind>
420   </context>
421
422   <context name="Maximize">
423     <mousebind button="Left" action="Press">
424       <action name="Activate"/>
425     </mousebind>
426     <mousebind button="Middle" action="Press">
427       <action name="Activate"/>
428     </mousebind>
429     <mousebind button="Right" action="Press">
430       <action name="Activate"/>
431     </mousebind>
432     <mousebind button="Left" action="Click">
433       <action name="ToggleMaximizeFull"/>
434     </mousebind>
435     <mousebind button="Middle" action="Click">
436       <action name="ToggleMaximizeVert"/>
437     </mousebind>
438     <mousebind button="Right" action="Click">
439       <action name="ToggleMaximizeHorz"/>
440     </mousebind>
441   </context>
442
443   <context name="Close">
444     <mousebind button="Left" action="Press">
445       <action name="Activate"/>
446     </mousebind>
447     <mousebind button="Left" action="Click">
448       <action name="Close"/>
449     </mousebind>
450   </context>
451
452   <context name="Desktop">
453     <mousebind button="Up" action="Press">
454       <action name="DesktopPrevious"/>
455     </mousebind>
456     <mousebind button="Down" action="Press">
457       <action name="DesktopNext"/>
458     </mousebind>
459
460     <mousebind button="A-Up" action="Press">
461       <action name="DesktopPrevious"/>
462     </mousebind>
463     <mousebind button="A-Down" action="Press">
464       <action name="DesktopNext"/>
465     </mousebind>
466
467     <mousebind button="Left" action="Press">
468       <action name="Activate"/>
469     </mousebind>
470   </context>
471
472   <context name="Root">
473     <!-- Menus -->
474     <mousebind button="Middle" action="Press">
475       <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
476     </mousebind> 
477     <mousebind button="Right" action="Press">
478       <action name="ShowMenu"><menu>root-menu</menu></action>
479     </mousebind>
480   </context>
481
482   <context name="MoveResize">
483     <mousebind button="Up" action="Press">
484       <action name="DesktopPrevious"/>
485     </mousebind>
486     <mousebind button="Down" action="Press">
487       <action name="DesktopNext"/>
488     </mousebind>
489     <mousebind button="A-Up" action="Press">
490       <action name="DesktopPrevious"/>
491     </mousebind>
492     <mousebind button="A-Down" action="Press">
493       <action name="DesktopNext"/>
494     </mousebind>
495   </context>
496 </mouse>
497
498 <menu>
499   <!-- You can specify more than one menu file in here and they are all loaded,
500        just don't make menu ids clash or, well, it'll be kind of pointless -->
501
502   <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
503   <file>menu.xml</file>
504   <hideDelay>200</hideDelay>
505   <middle>no</middle>
506   <submenuShowDelay>100</submenuShowDelay>
507   <applicationIcons>yes</applicationIcons>
508 </menu>
509
510 <applications>
511 <!--
512   # this is an example with comments through out. use these to make your
513   # own rules, but without the comments of course.
514
515   <application name="first element of window's WM_CLASS property (see xprop)"
516               class="second element of window's WM_CLASS property (see xprop)"
517                role="the window's WM_WINDOW_ROLE property (see xprop)">
518   # the name or the class can be set, or both. this is used to match
519   # windows when they appear. role can optionally be set as well, to
520   # further restrict your matches.
521
522   # the name, class, and role use simple wildcard matching such as those
523   # used by a shell. you can use * to match any characters and ? to match
524   # any single character.
525
526   # when multiple rules match a window, they will all be applied, in the
527   # order that they appear in this list
528
529
530     # each element can be left out or set to 'default' to specify to not 
531     # change that attribute of the window
532
533     <decor>yes</decor>
534     # enable or disable window decorations
535
536     <shade>no</shade>
537     # make the window shaded when it appears, or not
538
539     <position>
540       # the position is only used if both an x and y coordinate are provided
541       # (and not set to 'default')
542       <x>center</x>
543       # a number like 50, or 'center' to center on screen
544       <y>200</y>
545       # a number like 50, or 'center' to center on screen
546       <monitor>1</monitor>
547       # specifies the monitor in a xinerama setup.
548       # 1 is the first head, or 'mouse' for wherever the mouse is
549     </position>
550
551     <focus>yes</focus>
552     # if the window should try be given focus when it appears. if this is set
553     # to yes it doesn't guarantee the window will be given focus. some
554     # restrictions may apply, but Openbox will try to
555
556     <desktop>1</desktop>
557     # 1 is the first desktop, 'all' for all desktops
558
559     <layer>normal</layer>
560     # 'above', 'normal', or 'below'
561
562     <iconic>no</iconic>
563     # make the window iconified when it appears, or not
564
565     <skip_pager>no</skip_pager>
566     # asks to not be shown in pagers
567
568     <skip_taskbar>no</skip_taskbar>
569     # asks to not be shown in taskbars. window cycling actions will also
570     # skip past such windows
571
572     <fullscreen>yes</fullscreen>
573     # make the window in fullscreen mode when it appears
574
575     <maximized>true</maximized>
576     # 'Horizontal', 'Vertical' or boolean (yes/no)
577   </application>
578
579   # end of the example
580 -->
581 </applications>
582
583 </openbox_config>