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