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