]> Dogcows Code - chaz/openbox/blob - doc/rc-mouse-focus.xml
missed a spot
[chaz/openbox] / 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="Activate"/>
401 </mousebind>
402 <mousebind button="Middle" action="Press">
403 <action name="Activate"/>
404 </mousebind>
405 <mousebind button="Right" action="Press">
406 <action name="Activate"/>
407 </mousebind>
408 </context>
409
410 <context name="Icon">
411 <mousebind button="Left" action="Press">
412 <action name="Focus"/>
413 <action name="ShowMenu"><menu>client-menu</menu></action>
414 </mousebind>
415 <mousebind button="Right" action="Press">
416 <action name="Focus"/>
417 <action name="ShowMenu"><menu>client-menu</menu></action>
418 </mousebind>
419 </context>
420
421 <context name="AllDesktops">
422 <mousebind button="Left" action="Press">
423 <action name="Focus"/>
424 </mousebind>
425 <mousebind button="Left" action="Click">
426 <action name="ToggleOmnipresent"/>
427 </mousebind>
428 </context>
429
430 <context name="Shade">
431 <mousebind button="Left" action="Press">
432 <action name="Focus"/>
433 </mousebind>
434 <mousebind button="Left" action="Click">
435 <action name="ToggleShade"/>
436 </mousebind>
437 </context>
438
439 <context name="Iconify">
440 <mousebind button="Left" action="Press">
441 <action name="Focus"/>
442 </mousebind>
443 <mousebind button="Left" action="Click">
444 <action name="Iconify"/>
445 </mousebind>
446 </context>
447
448 <context name="Maximize">
449 <mousebind button="Left" action="Press">
450 <action name="Focus"/>
451 </mousebind>
452 <mousebind button="Middle" action="Press">
453 <action name="Focus"/>
454 </mousebind>
455 <mousebind button="Right" action="Press">
456 <action name="Focus"/>
457 </mousebind>
458 <mousebind button="Left" action="Click">
459 <action name="ToggleMaximizeFull"/>
460 </mousebind>
461 <mousebind button="Middle" action="Click">
462 <action name="ToggleMaximizeVert"/>
463 </mousebind>
464 <mousebind button="Right" action="Click">
465 <action name="ToggleMaximizeHorz"/>
466 </mousebind>
467 </context>
468
469 <context name="Close">
470 <mousebind button="Left" action="Press">
471 <action name="Focus"/>
472 </mousebind>
473 <mousebind button="Left" action="Click">
474 <action name="Close"/>
475 </mousebind>
476 </context>
477
478 <context name="Desktop">
479 <mousebind button="Up" action="Press">
480 <action name="DesktopPrevious"/>
481 </mousebind>
482 <mousebind button="Down" action="Press">
483 <action name="DesktopNext"/>
484 </mousebind>
485
486 <mousebind button="A-Up" action="Press">
487 <action name="DesktopPrevious"/>
488 </mousebind>
489 <mousebind button="A-Down" action="Press">
490 <action name="DesktopNext"/>
491 </mousebind>
492
493 <mousebind button="Left" action="Press">
494 <action name="Activate"/>
495 </mousebind>
496 </context>
497
498 <context name="Root">
499 <!-- Menus -->
500 <mousebind button="Middle" action="Press">
501 <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
502 </mousebind>
503 <mousebind button="Right" action="Press">
504 <action name="ShowMenu"><menu>root-menu</menu></action>
505 </mousebind>
506 </context>
507
508 <context name="MoveResize">
509 <mousebind button="Up" action="Press">
510 <action name="DesktopPrevious"/>
511 </mousebind>
512 <mousebind button="Down" action="Press">
513 <action name="DesktopNext"/>
514 </mousebind>
515 <mousebind button="A-Up" action="Press">
516 <action name="DesktopPrevious"/>
517 </mousebind>
518 <mousebind button="A-Down" action="Press">
519 <action name="DesktopNext"/>
520 </mousebind>
521 </context>
522 </mouse>
523
524 <menu>
525 <!-- You can specify more than one menu file in here and they are all loaded,
526 just don't make menu ids clash or, well, it'll be kind of pointless -->
527
528 <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
529 <file>menu.xml</file>
530 <hideDelay>200</hideDelay>
531 <middle>no</middle>
532 <submenuShowDelay>100</submenuShowDelay>
533 <applicationIcons>yes</applicationIcons>
534 </menu>
535
536 <applications>
537 <!--
538 # this is an example with comments through out. use these to make your
539 # own rules, but without the comments of course.
540
541 <application name="first element of window's WM_CLASS property (see xprop)"
542 class="second element of window's WM_CLASS property (see xprop)"
543 role="the window's WM_WINDOW_ROLE property (see xprop)">
544 # the name or the class can be set, or both. this is used to match
545 # windows when they appear. role can optionally be set as well, to
546 # further restrict your matches.
547
548 # the name, class, and role use simple wildcard matching such as those
549 # used by a shell. you can use * to match any characters and ? to match
550 # any single character.
551
552 # when multiple rules match a window, they will all be applied, in the
553 # order that they appear in this list
554
555
556 # each element can be left out or set to 'default' to specify to not
557 # change that attribute of the window
558
559 <decor>yes</decor>
560 # enable or disable window decorations
561
562 <shade>no</shade>
563 # make the window shaded when it appears, or not
564
565 <position>
566 # the position is only used if both an x and y coordinate are provided
567 # (and not set to 'default')
568 <x>center</x>
569 # a number like 50, or 'center' to center on screen
570 <y>200</y>
571 # a number like 50, or 'center' to center on screen
572 <monitor>1</monitor>
573 # specifies the monitor in a xinerama setup.
574 # 1 is the first head, or 'mouse' for wherever the mouse is
575 </position>
576
577 <focus>yes</focus>
578 # if the window should try be given focus when it appears. if this is set
579 # to yes it doesn't guarantee the window will be given focus. some
580 # restrictions may apply, but Openbox will try to
581
582 <desktop>1</desktop>
583 # 1 is the first desktop, 'all' for all desktops
584
585 <layer>normal</layer>
586 # 'above', 'normal', or 'below'
587
588 <iconic>no</iconic>
589 # make the window iconified when it appears, or not
590
591 <skip_pager>no</skip_pager>
592 # asks to not be shown in pagers
593
594 <skip_taskbar>no</skip_taskbar>
595 # asks to not be shown in taskbars. window cycling actions will also
596 # skip past such windows
597
598 <fullscreen>yes</fullscreen>
599 # make the window in fullscreen mode when it appears
600
601 <maximized>true</maximized>
602 # 'Horizontal', 'Vertical' or boolean (yes/no)
603 </application>
604
605 # end of the example
606 -->
607 </applications>
608
609 </openbox_config>
This page took 0.060767 seconds and 4 git commands to generate.