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