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