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