]> icculus.org git repositories - mikachu/openbox.git/blob - data/rc.xml
add a comment
[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   <popupTime>875</popupTime>
120   <!-- The number of milliseconds to show the popup for when switching
121        desktops.  Set this to 0 to disable the popup. -->
122 </desktops>
123
124 <resize>
125   <drawContents>yes</drawContents>
126   <popupShow>Nonpixel</popupShow>
127   <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
128   <popupPosition>Center</popupPosition>
129   <!-- 'Center' or 'Top' -->
130 </resize>
131
132 <!-- You can reserve a portion of your screen where windows will not cover when
133      they are maximized, or when they are initially placed.
134      Many programs reserve space automatically, but you can use this in other
135      cases. -->
136 <margins>
137   <top>0</top>
138   <bottom>0</bottom>
139   <left>0</left>
140   <right>0</right>
141 </margins>
142
143 <dock>
144   <position>TopLeft</position>
145   <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
146   <floatingX>0</floatingX>
147   <floatingY>0</floatingY>
148   <noStrut>no</noStrut>
149   <stacking>Above</stacking>
150   <!-- 'Above', 'Normal', or 'Below' -->
151   <direction>Vertical</direction>
152   <!-- 'Vertical' or 'Horizontal' -->
153   <autoHide>no</autoHide>
154   <hideDelay>300</hideDelay>
155   <!-- in milliseconds (1000 = 1 second) -->
156   <showDelay>300</showDelay>
157   <!-- in milliseconds (1000 = 1 second) -->
158   <moveButton>Middle</moveButton>
159   <!-- 'Left', 'Middle', 'Right' -->
160 </dock>
161
162 <keyboard>
163   <chainQuitKey>C-g</chainQuitKey>
164
165   <!-- Keybindings for desktop switching -->
166   <keybind key="C-A-Left">
167     <action name="GoToDesktop"><to>left</to><wrap>no</wrap></action>
168   </keybind>
169   <keybind key="C-A-Right">
170     <action name="GoToDesktop"><to>right</to><wrap>no</wrap></action>
171   </keybind>
172   <keybind key="C-A-Up">
173     <action name="GoToDesktop"><to>up</to><wrap>no</wrap></action>
174   </keybind>
175   <keybind key="C-A-Down">
176     <action name="GoToDesktop"><to>down</to><wrap>no</wrap></action>
177   </keybind>
178   <keybind key="S-A-Left">
179     <action name="SendToDesktop"><to>left</to><wrap>no</wrap></action>
180   </keybind>
181   <keybind key="S-A-Right">
182     <action name="SendToDesktop"><to>right</to><wrap>no</wrap></action>
183   </keybind>
184   <keybind key="S-A-Up">
185     <action name="SendToDesktop"><to>up</to><wrap>no</wrap></action>
186   </keybind>
187   <keybind key="S-A-Down">
188     <action name="SendToDesktop"><to>down</to><wrap>no</wrap></action>
189   </keybind>
190   <keybind key="W-F1">
191     <action name="GoToDesktop"><to>1</to></action>
192   </keybind>
193   <keybind key="W-F2">
194     <action name="GoToDesktop"><to>2</to></action>
195   </keybind>
196   <keybind key="W-F3">
197     <action name="GoToDesktop"><to>3</to></action>
198   </keybind>
199   <keybind key="W-F4">
200     <action name="GoToDesktop"><to>4</to></action>
201   </keybind>
202   <keybind key="W-d">
203     <action name="ToggleShowDesktop"/>
204   </keybind>
205
206   <!-- Keybindings for windows -->
207   <keybind key="A-F4">
208     <action name="Close"/>
209   </keybind>
210   <keybind key="A-Escape">
211     <action name="Lower"/>
212     <action name="FocusToBottom"/>
213     <action name="Unfocus"/>
214   </keybind>
215   <keybind key="A-space">
216     <action name="ShowMenu"><menu>client-menu</menu></action>
217   </keybind>
218
219   <!-- Keybindings for window switching -->
220   <keybind key="A-Tab">
221     <action name="NextWindow">
222       <finalactions>
223         <action name="Focus"/>
224         <action name="Raise"/>
225         <action name="Unshade"/>
226       </finalactions>
227     </action>
228   </keybind>
229   <keybind key="A-S-Tab">
230     <action name="PreviousWindow">
231       <finalactions>
232         <action name="Focus"/>
233         <action name="Raise"/>
234         <action name="Unshade"/>
235       </finalactions>
236     </action>
237   </keybind>
238   <keybind key="C-A-Tab">
239     <action name="NextWindow">
240       <panels>yes</panels><desktop>yes</desktop>
241       <finalactions>
242         <action name="Focus"/>
243         <action name="Raise"/>
244         <action name="Unshade"/>
245       </finalactions>
246     </action>
247   </keybind>
248
249   <!-- Keybindings for running applications -->
250   <keybind key="W-e">
251     <action name="Execute">
252       <startupnotify>
253         <enabled>true</enabled>
254         <name>Konqueror</name>
255       </startupnotify>
256       <command>kfmclient openProfile filemanagement</command>
257     </action>
258   </keybind>
259 </keyboard>
260
261 <mouse>
262   <dragThreshold>8</dragThreshold>
263   <!-- number of pixels the mouse must move before a drag begins -->
264   <doubleClickTime>200</doubleClickTime>
265   <!-- in milliseconds (1000 = 1 second) -->
266   <screenEdgeWarpTime>400</screenEdgeWarpTime>
267   <!-- Time before changing desktops when the pointer touches the edge of the
268        screen while moving a window, in milliseconds (1000 = 1 second).
269        Set this to 0 to disable warping -->
270
271   <context name="Frame">
272     <mousebind button="A-Left" action="Press">
273       <action name="Focus"/>
274       <action name="Raise"/>
275     </mousebind>
276     <mousebind button="A-Left" action="Click">
277       <action name="Unshade"/>
278     </mousebind>
279     <mousebind button="A-Left" action="Drag">
280       <action name="Move"/>
281     </mousebind>
282
283     <mousebind button="A-Right" action="Press">
284       <action name="Focus"/>
285       <action name="Raise"/>
286       <action name="Unshade"/>
287     </mousebind>
288     <mousebind button="A-Right" action="Drag">
289       <action name="Resize"/>
290     </mousebind> 
291
292     <mousebind button="A-Middle" action="Press">
293       <action name="Lower"/>
294       <action name="FocusToBottom"/>
295       <action name="Unfocus"/>
296     </mousebind>
297
298     <mousebind button="A-Up" action="Click">
299       <action name="GoToDesktop"><to>previous</to></action>
300     </mousebind>
301     <mousebind button="A-Down" action="Click">
302       <action name="GoToDesktop"><to>next</to></action>
303     </mousebind>
304     <mousebind button="C-A-Up" action="Click">
305       <action name="GoToDesktop"><to>previous</to></action>
306     </mousebind>
307     <mousebind button="C-A-Down" action="Click">
308       <action name="GoToDesktop"><to>next</to></action>
309     </mousebind>
310     <mousebind button="A-S-Up" action="Click">
311       <action name="SendToDesktop"><to>previous</to></action>
312     </mousebind>
313     <mousebind button="A-S-Down" action="Click">
314       <action name="SendToDesktop"><to>next</to></action>
315     </mousebind>
316   </context>
317
318   <context name="Titlebar">
319     <mousebind button="Left" action="Press">
320       <action name="Focus"/>
321       <action name="Raise"/>
322     </mousebind>
323     <mousebind button="Left" action="Drag">
324       <action name="Move"/>
325     </mousebind>
326     <mousebind button="Left" action="DoubleClick">
327       <action name="ToggleMaximize"/>
328     </mousebind>
329
330     <mousebind button="Middle" action="Press">
331       <action name="Lower"/>
332       <action name="FocusToBottom"/>
333       <action name="Unfocus"/>
334     </mousebind>
335
336     <mousebind button="Up" action="Click">
337       <action name="Shade"/>
338       <action name="FocusToBottom"/>
339       <action name="Unfocus"/>
340       <action name="Lower"/>
341     </mousebind>
342     <mousebind button="Down" action="Click">
343       <action name="Unshade"/>
344       <action name="Raise"/>
345     </mousebind>
346
347     <mousebind button="Right" action="Press">
348       <action name="Focus"/>
349       <action name="Raise"/>
350       <action name="ShowMenu"><menu>client-menu</menu></action>
351     </mousebind>
352   </context>
353
354   <context name="Top">
355     <mousebind button="Left" action="Press">
356       <action name="Focus"/>
357       <action name="Raise"/>
358       <action name="Unshade"/>
359     </mousebind>
360     <mousebind button="Left" action="Drag">
361       <action name="Resize"><edge>top</edge></action>
362     </mousebind>
363   </context>
364
365   <context name="Left">
366     <mousebind button="Left" action="Press">
367       <action name="Focus"/>
368       <action name="Raise"/>
369     </mousebind>
370     <mousebind button="Left" action="Drag">
371       <action name="Resize"><edge>left</edge></action>
372     </mousebind>
373   </context>
374
375   <context name="Right">
376     <mousebind button="Left" action="Press">
377       <action name="Focus"/>
378       <action name="Raise"/>
379     </mousebind>
380     <mousebind button="Left" action="Drag">
381       <action name="Resize"><edge>right</edge></action>
382     </mousebind>
383   </context>
384
385   <context name="Bottom">
386     <mousebind button="Left" action="Press">
387       <action name="Focus"/>
388       <action name="Raise"/>
389     </mousebind>
390     <mousebind button="Left" action="Drag">
391       <action name="Resize"><edge>bottom</edge></action>
392     </mousebind>
393
394     <mousebind button="Middle" action="Press">
395       <action name="Lower"/>
396       <action name="FocusToBottom"/>
397       <action name="Unfocus"/>
398     </mousebind>
399
400     <mousebind button="Right" action="Press">
401       <action name="Focus"/>
402       <action name="Raise"/>
403       <action name="ShowMenu"><menu>client-menu</menu></action>
404     </mousebind>
405   </context>
406
407   <context name="BLCorner">
408     <mousebind button="Left" action="Press">
409       <action name="Focus"/>
410       <action name="Raise"/>
411     </mousebind>
412     <mousebind button="Left" action="Drag">
413       <action name="Resize"><edge>bottomleft</edge></action>
414     </mousebind>
415   </context>
416
417   <context name="BRCorner">
418     <mousebind button="Left" action="Press">
419       <action name="Focus"/>
420       <action name="Raise"/>
421     </mousebind>
422     <mousebind button="Left" action="Drag">
423       <action name="Resize"><edge>bottomright</edge></action>
424     </mousebind>
425   </context>
426
427   <context name="TLCorner">
428     <mousebind button="Left" action="Press">
429       <action name="Focus"/>
430       <action name="Raise"/>
431       <action name="Unshade"/>
432     </mousebind>
433     <mousebind button="Left" action="Drag">
434       <action name="Resize"><edge>topleft</edge></action>
435     </mousebind>
436   </context>
437
438   <context name="TRCorner">
439     <mousebind button="Left" action="Press">
440       <action name="Focus"/>
441       <action name="Raise"/>
442       <action name="Unshade"/>
443     </mousebind>
444     <mousebind button="Left" action="Drag">
445       <action name="Resize"><edge>topright</edge></action>
446     </mousebind>
447   </context>
448
449   <context name="Client">
450     <mousebind button="Left" action="Press">
451       <action name="Focus"/>
452       <action name="Raise"/>
453     </mousebind>
454     <mousebind button="Middle" action="Press">
455       <action name="Focus"/>
456       <action name="Raise"/>
457     </mousebind>
458     <mousebind button="Right" action="Press">
459       <action name="Focus"/>
460       <action name="Raise"/>
461     </mousebind>
462   </context>
463
464   <context name="Icon">
465     <mousebind button="Left" action="Press">
466       <action name="Focus"/>
467       <action name="Raise"/>
468       <action name="Unshade"/>
469       <action name="ShowMenu"><menu>client-menu</menu></action>
470     </mousebind>
471     <mousebind button="Right" action="Press">
472       <action name="Focus"/>
473       <action name="Raise"/>
474       <action name="ShowMenu"><menu>client-menu</menu></action>
475     </mousebind>
476   </context>
477
478   <context name="AllDesktops">
479     <mousebind button="Left" action="Press">
480       <action name="Focus"/>
481       <action name="Raise"/>
482       <action name="Unshade"/>
483     </mousebind>
484     <mousebind button="Left" action="Click">
485       <action name="ToggleOmnipresent"/>
486     </mousebind>
487   </context>
488
489   <context name="Shade">
490     <mousebind button="Left" action="Press">
491       <action name="Focus"/>
492       <action name="Raise"/>
493     </mousebind>
494     <mousebind button="Left" action="Click">
495       <action name="ToggleShade"/>
496     </mousebind>
497   </context>
498
499   <context name="Iconify">
500     <mousebind button="Left" action="Press">
501       <action name="Focus"/>
502       <action name="Raise"/>
503     </mousebind>
504     <mousebind button="Left" action="Click">
505       <action name="Iconify"/>
506     </mousebind>
507   </context>
508
509   <context name="Maximize">
510     <mousebind button="Left" action="Press">
511       <action name="Focus"/>
512       <action name="Raise"/>
513       <action name="Unshade"/>
514     </mousebind>
515     <mousebind button="Middle" action="Press">
516       <action name="Focus"/>
517       <action name="Raise"/>
518       <action name="Unshade"/>
519     </mousebind>
520     <mousebind button="Right" action="Press">
521       <action name="Focus"/>
522       <action name="Raise"/>
523       <action name="Unshade"/>
524     </mousebind>
525     <mousebind button="Left" action="Click">
526       <action name="ToggleMaximize"/>
527     </mousebind>
528     <mousebind button="Middle" action="Click">
529       <action name="ToggleMaximize"><direction>vertical</direction></action>
530     </mousebind>
531     <mousebind button="Right" action="Click">
532       <action name="ToggleMaximize"><direction>horizontal</direction></action>
533     </mousebind>
534   </context>
535
536   <context name="Close">
537     <mousebind button="Left" action="Press">
538       <action name="Focus"/>
539       <action name="Raise"/>
540       <action name="Unshade"/>
541     </mousebind>
542     <mousebind button="Left" action="Click">
543       <action name="Close"/>
544     </mousebind>
545   </context>
546
547   <context name="Desktop">
548     <mousebind button="Up" action="Press">
549       <action name="GoToDesktop"><to>previous</to></action>
550     </mousebind>
551     <mousebind button="Down" action="Press">
552       <action name="GoToDesktop"><to>next</to></action>
553     </mousebind>
554
555     <mousebind button="A-Up" action="Press">
556       <action name="GoToDesktop"><to>previous</to></action>
557     </mousebind>
558     <mousebind button="A-Down" action="Press">
559       <action name="GoToDesktop"><to>next</to></action>
560     </mousebind>
561     <mousebind button="C-A-Up" action="Press">
562       <action name="GoToDesktop"><to>previous</to></action>
563     </mousebind>
564     <mousebind button="C-A-Down" action="Press">
565       <action name="GoToDesktop"><to>next</to></action>
566     </mousebind>
567
568     <mousebind button="Left" action="Press">
569       <action name="Focus"/>
570       <action name="Raise"/>
571     </mousebind>
572   </context>
573
574   <context name="Root">
575     <!-- Menus -->
576     <mousebind button="Middle" action="Press">
577       <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
578     </mousebind> 
579     <mousebind button="Right" action="Press">
580       <action name="ShowMenu"><menu>root-menu</menu></action>
581     </mousebind>
582   </context>
583
584   <context name="MoveResize">
585     <mousebind button="Up" action="Press">
586       <action name="GoToDesktop"><to>previous</to></action>
587     </mousebind>
588     <mousebind button="Down" action="Press">
589       <action name="GoToDesktop"><to>next</to></action>
590     </mousebind>
591     <mousebind button="A-Up" action="Press">
592       <action name="GoToDesktop"><to>previous</to></action>
593     </mousebind>
594     <mousebind button="A-Down" action="Press">
595       <action name="GoToDesktop"><to>next</to></action>
596     </mousebind>
597   </context>
598 </mouse>
599
600 <menu>
601   <!-- You can specify more than one menu file in here and they are all loaded,
602        just don't make menu ids clash or, well, it'll be kind of pointless -->
603
604   <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
605   <file>menu.xml</file>
606   <hideDelay>200</hideDelay>
607   <middle>no</middle>
608   <submenuShowDelay>100</submenuShowDelay>
609   <applicationIcons>yes</applicationIcons>
610 </menu>
611
612 <applications>
613 <!--
614   # this is an example with comments through out. use these to make your
615   # own rules, but without the comments of course.
616
617   <application name="first element of window's WM_CLASS property (see xprop)"
618               class="second element of window's WM_CLASS property (see xprop)"
619                role="the window's WM_WINDOW_ROLE property (see xprop)">
620   # the name or the class can be set, or both. this is used to match
621   # windows when they appear. role can optionally be set as well, to
622   # further restrict your matches.
623
624   # the name, class, and role use simple wildcard matching such as those
625   # used by a shell. you can use * to match any characters and ? to match
626   # any single character.
627
628   # when multiple rules match a window, they will all be applied, in the
629   # order that they appear in this list
630
631
632     # each element can be left out or set to 'default' to specify to not 
633     # change that attribute of the window
634
635     <decor>yes</decor>
636     # enable or disable window decorations
637
638     <shade>no</shade>
639     # make the window shaded when it appears, or not
640
641     <position>
642       # the position is only used if both an x and y coordinate are provided
643       # (and not set to 'default')
644       <x>center</x>
645       # a number like 50, or 'center' to center on screen. use a negative number
646       # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
647       # right edge (or bottom).
648       <y>200</y>
649       <monitor>1</monitor>
650       # specifies the monitor in a xinerama setup.
651       # 1 is the first head, or 'mouse' for wherever the mouse is
652     </position>
653
654     <focus>yes</focus>
655     # if the window should try be given focus when it appears. if this is set
656     # to yes it doesn't guarantee the window will be given focus. some
657     # restrictions may apply, but Openbox will try to
658
659     <desktop>1</desktop>
660     # 1 is the first desktop, 'all' for all desktops
661
662     <layer>normal</layer>
663     # 'above', 'normal', or 'below'
664
665     <iconic>no</iconic>
666     # make the window iconified when it appears, or not
667
668     <skip_pager>no</skip_pager>
669     # asks to not be shown in pagers
670
671     <skip_taskbar>no</skip_taskbar>
672     # asks to not be shown in taskbars. window cycling actions will also
673     # skip past such windows
674
675     <fullscreen>yes</fullscreen>
676     # make the window in fullscreen mode when it appears
677
678     <maximized>true</maximized>
679     # 'Horizontal', 'Vertical' or boolean (yes/no)
680   </application>
681
682   # end of the example
683 -->
684 </applications>
685
686 </openbox_config>