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