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