]> Dogcows Code - chaz/openbox/blob - doc/rc-mouse-focus.xml
reuse variables, less braces
[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 <number>4</number>
93 <firstdesk>1</firstdesk>
94 <names>
95 <name>desktop one</name>
96 <name>desktop two</name>
97 <name>desktop three</name>
98 <name>desktop four</name>
99 </names>
100 </desktops>
101
102 <resize>
103 <drawContents>yes</drawContents>
104 <popupShow>Nonpixel</popupShow>
105 <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
106 <popupPosition>Center</popupPosition>
107 <!-- 'Center' or 'Top' -->
108 </resize>
109
110 <dock>
111 <position>TopLeft</position>
112 <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
113 <floatingX>0</floatingX>
114 <floatingY>0</floatingY>
115 <noStrut>no</noStrut>
116 <stacking>Above</stacking>
117 <!-- 'Above', 'Normal', or 'Below' -->
118 <direction>Vertical</direction>
119 <!-- 'Vertical' or 'Horizontal' -->
120 <autoHide>no</autoHide>
121 <hideDelay>300</hideDelay>
122 <!-- in milliseconds (1000 = 1 second) -->
123 <showDelay>300</showDelay>
124 <!-- in milliseconds (1000 = 1 second) -->
125 <moveButton>Middle</moveButton>
126 <!-- 'Left', 'Middle', 'Right' -->
127 </dock>
128
129 <keyboard>
130 <chainQuitKey>C-g</chainQuitKey>
131
132 <!-- Keybindings for desktop switching -->
133 <keybind key="C-A-Left">
134 <action name="DesktopLeft"><wrap>no</wrap></action>
135 </keybind>
136 <keybind key="C-A-Right">
137 <action name="DesktopRight"><wrap>no</wrap></action>
138 </keybind>
139 <keybind key="C-A-Up">
140 <action name="DesktopUp"><wrap>no</wrap></action>
141 </keybind>
142 <keybind key="C-A-Down">
143 <action name="DesktopDown"><wrap>no</wrap></action>
144 </keybind>
145 <keybind key="S-A-Left">
146 <action name="SendToDesktopLeft"><wrap>no</wrap></action>
147 </keybind>
148 <keybind key="S-A-Right">
149 <action name="SendToDesktopRight"><wrap>no</wrap></action>
150 </keybind>
151 <keybind key="S-A-Up">
152 <action name="SendToDesktopUp"><wrap>no</wrap></action>
153 </keybind>
154 <keybind key="S-A-Down">
155 <action name="SendToDesktopDown"><wrap>no</wrap></action>
156 </keybind>
157 <keybind key="W-F1">
158 <action name="Desktop"><desktop>1</desktop></action>
159 </keybind>
160 <keybind key="W-F2">
161 <action name="Desktop"><desktop>2</desktop></action>
162 </keybind>
163 <keybind key="W-F3">
164 <action name="Desktop"><desktop>3</desktop></action>
165 </keybind>
166 <keybind key="W-F4">
167 <action name="Desktop"><desktop>4</desktop></action>
168 </keybind>
169 <keybind key="W-d">
170 <action name="ToggleShowDesktop"/>
171 </keybind>
172
173 <!-- Keybindings for windows -->
174 <keybind key="A-F4">
175 <action name="Close"/>
176 </keybind>
177 <keybind key="A-Escape">
178 <action name="Lower"/>
179 </keybind>
180 <keybind key="A-space">
181 <action name="ShowMenu"><menu>client-menu</menu></action>
182 </keybind>
183
184 <!-- Keybindings for window switching -->
185 <keybind key="A-Tab">
186 <action name="NextWindow"/>
187 </keybind>
188 <keybind key="A-S-Tab">
189 <action name="PreviousWindow"/>
190 </keybind>
191 <keybind key="C-A-Tab">
192 <action name="NextWindow">
193 <panels>yes</panels><desktop>yes</desktop>
194 </action>
195 </keybind>
196
197 <!-- Keybindings for running applications -->
198 <keybind key="W-e">
199 <action name="Execute">
200 <startupnotify>
201 <enabled>true</enabled>
202 <name>Konqueror</name>
203 </startupnotify>
204 <execute>kfmclient openProfile filemanagement</execute>
205 </action>
206 </keybind>
207 </keyboard>
208
209 <mouse>
210 <dragThreshold>3</dragThreshold>
211 <!-- number of pixels the mouse must move before a drag begins -->
212 <doubleClickTime>200</doubleClickTime>
213 <!-- in milliseconds (1000 = 1 second) -->
214
215 <context name="Frame">
216 <mousebind button="A-Left" action="Press">
217 <action name="Focus"/>
218 </mousebind>
219 <mousebind button="A-Left" action="Click">
220 <action name="Raise"/>
221 </mousebind>
222 <mousebind button="A-Left" action="Drag">
223 <action name="Move"/>
224 </mousebind>
225
226 <mousebind button="A-Right" action="Press">
227 <action name="Focus"/>
228 </mousebind>
229 <mousebind button="A-Right" action="Press">
230 <action name="Raise"/>
231 </mousebind>
232 <mousebind button="A-Right" action="Drag">
233 <action name="Resize"/>
234 </mousebind>
235
236 <mousebind button="A-Middle" action="Press">
237 <action name="Focus"/>
238 <action name="Lower"/>
239 </mousebind>
240
241 <mousebind button="A-Up" action="Click">
242 <action name="DesktopPrevious"/>
243 </mousebind>
244 <mousebind button="A-Down" action="Click">
245 <action name="DesktopNext"/>
246 </mousebind>
247 <mousebind button="A-S-Up" action="Click">
248 <action name="SendToDesktopPrevious"/>
249 </mousebind>
250 <mousebind button="A-S-Down" action="Click">
251 <action name="SendToDesktopNext"/>
252 </mousebind>
253 </context>
254
255 <context name="Titlebar">
256 <mousebind button="Left" action="Press">
257 <action name="Focus"/>
258 </mousebind>
259 <mousebind button="Left" action="Click">
260 <action name="Raise"/>
261 </mousebind>
262 <mousebind button="Left" action="Drag">
263 <action name="Move"/>
264 </mousebind>
265 <mousebind button="Left" action="DoubleClick">
266 <action name="ToggleMaximizeFull"/>
267 </mousebind>
268
269 <mousebind button="Middle" action="Press">
270 <action name="Focus"/>
271 <action name="Lower"/>
272 </mousebind>
273
274 <mousebind button="Up" action="Click">
275 <action name="Shade"/>
276 </mousebind>
277 <mousebind button="Down" action="Click">
278 <action name="Unshade"/>
279 </mousebind>
280
281 <mousebind button="Right" action="Press">
282 <action name="Focus"/>
283 <action name="ShowMenu"><menu>client-menu</menu></action>
284 </mousebind>
285 </context>
286
287 <context name="Top">
288 <mousebind button="Left" action="Press">
289 <action name="Focus"/>
290 </mousebind>
291 <mousebind button="Left" action="Click">
292 <action name="Raise"/>
293 </mousebind>
294 <mousebind button="Left" action="Drag">
295 <action name="Resize"><edge>top</edge></action>
296 </mousebind>
297 </context>
298
299 <context name="Left">
300 <mousebind button="Left" action="Press">
301 <action name="Focus"/>
302 </mousebind>
303 <mousebind button="Left" action="Click">
304 <action name="Raise"/>
305 </mousebind>
306 <mousebind button="Left" action="Drag">
307 <action name="Resize"><edge>top</edge></action>
308 </mousebind>
309 </context>
310
311 <context name="Right">
312 <mousebind button="Left" action="Press">
313 <action name="Focus"/>
314 </mousebind>
315 <mousebind button="Left" action="Click">
316 <action name="Raise"/>
317 </mousebind>
318 <mousebind button="Left" action="Drag">
319 <action name="Resize"><edge>top</edge></action>
320 </mousebind>
321 </context>
322
323 <context name="Handle">
324 <mousebind button="Left" action="Press">
325 <action name="Focus"/>
326 </mousebind>
327 <mousebind button="Left" action="Click">
328 <action name="Raise"/>
329 </mousebind>
330 <mousebind button="Left" action="Drag">
331 <action name="Resize"><edge>bottom</edge></action>
332 </mousebind>
333
334 <mousebind button="Middle" action="Press">
335 <action name="Focus"/>
336 <action name="Lower"/>
337 </mousebind>
338
339 <mousebind button="Right" action="Press">
340 <action name="Focus"/>
341 <action name="ShowMenu"><menu>client-menu</menu></action>
342 </mousebind>
343 </context>
344
345 <context name="BLCorner">
346 <mousebind button="Left" action="Press">
347 <action name="Focus"/>
348 </mousebind>
349 <mousebind button="Left" action="Click">
350 <action name="Raise"/>
351 </mousebind>
352 <mousebind button="Left" action="Drag">
353 <action name="Resize"/>
354 </mousebind>
355 </context>
356
357 <context name="BRCorner">
358 <mousebind button="Left" action="Press">
359 <action name="Focus"/>
360 </mousebind>
361 <mousebind button="Left" action="Click">
362 <action name="Raise"/>
363 </mousebind>
364 <mousebind button="Left" action="Drag">
365 <action name="Resize"/>
366 </mousebind>
367 </context>
368
369 <context name="TLCorner">
370 <mousebind button="Left" action="Press">
371 <action name="Focus"/>
372 </mousebind>
373 <mousebind button="Left" action="Click">
374 <action name="Raise"/>
375 </mousebind>
376 <mousebind button="Left" action="Drag">
377 <action name="Resize"/>
378 </mousebind>
379 </context>
380
381 <context name="TRCorner">
382 <mousebind button="Left" action="Press">
383 <action name="Focus"/>
384 </mousebind>
385 <mousebind button="Left" action="Click">
386 <action name="Raise"/>
387 </mousebind>
388 <mousebind button="Left" action="Drag">
389 <action name="Resize"/>
390 </mousebind>
391 </context>
392
393 <context name="Client">
394 <mousebind button="Left" action="Press">
395 <action name="Activate"/>
396 </mousebind>
397 <mousebind button="Middle" action="Press">
398 <action name="Activate"/>
399 </mousebind>
400 <mousebind button="Right" action="Press">
401 <action name="Activate"/>
402 </mousebind>
403 </context>
404
405 <context name="Icon">
406 <mousebind button="Left" action="Press">
407 <action name="Focus"/>
408 <action name="ShowMenu"><menu>client-menu</menu></action>
409 </mousebind>
410 <mousebind button="Right" action="Press">
411 <action name="Focus"/>
412 <action name="ShowMenu"><menu>client-menu</menu></action>
413 </mousebind>
414 </context>
415
416 <context name="AllDesktops">
417 <mousebind button="Left" action="Press">
418 <action name="Focus"/>
419 </mousebind>
420 <mousebind button="Left" action="Click">
421 <action name="ToggleOmnipresent"/>
422 </mousebind>
423 </context>
424
425 <context name="Shade">
426 <mousebind button="Left" action="Press">
427 <action name="Focus"/>
428 </mousebind>
429 <mousebind button="Left" action="Click">
430 <action name="ToggleShade"/>
431 </mousebind>
432 </context>
433
434 <context name="Iconify">
435 <mousebind button="Left" action="Press">
436 <action name="Focus"/>
437 </mousebind>
438 <mousebind button="Left" action="Click">
439 <action name="Iconify"/>
440 </mousebind>
441 </context>
442
443 <context name="Maximize">
444 <mousebind button="Left" action="Press">
445 <action name="Focus"/>
446 </mousebind>
447 <mousebind button="Middle" action="Press">
448 <action name="Focus"/>
449 </mousebind>
450 <mousebind button="Right" action="Press">
451 <action name="Focus"/>
452 </mousebind>
453 <mousebind button="Left" action="Click">
454 <action name="ToggleMaximizeFull"/>
455 </mousebind>
456 <mousebind button="Middle" action="Click">
457 <action name="ToggleMaximizeVert"/>
458 </mousebind>
459 <mousebind button="Right" action="Click">
460 <action name="ToggleMaximizeHorz"/>
461 </mousebind>
462 </context>
463
464 <context name="Close">
465 <mousebind button="Left" action="Press">
466 <action name="Focus"/>
467 </mousebind>
468 <mousebind button="Left" action="Click">
469 <action name="Close"/>
470 </mousebind>
471 </context>
472
473 <context name="Desktop">
474 <mousebind button="Up" action="Press">
475 <action name="DesktopPrevious"/>
476 </mousebind>
477 <mousebind button="Down" action="Press">
478 <action name="DesktopNext"/>
479 </mousebind>
480
481 <mousebind button="A-Up" action="Press">
482 <action name="DesktopPrevious"/>
483 </mousebind>
484 <mousebind button="A-Down" action="Press">
485 <action name="DesktopNext"/>
486 </mousebind>
487
488 <mousebind button="Left" action="Press">
489 <action name="Activate"/>
490 </mousebind>
491 </context>
492
493 <context name="Root">
494 <!-- Menus -->
495 <mousebind button="Middle" action="Press">
496 <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
497 </mousebind>
498 <mousebind button="Right" action="Press">
499 <action name="ShowMenu"><menu>root-menu</menu></action>
500 </mousebind>
501 </context>
502
503 <context name="MoveResize">
504 <mousebind button="Up" action="Press">
505 <action name="DesktopPrevious"/>
506 </mousebind>
507 <mousebind button="Down" action="Press">
508 <action name="DesktopNext"/>
509 </mousebind>
510 <mousebind button="A-Up" action="Press">
511 <action name="DesktopPrevious"/>
512 </mousebind>
513 <mousebind button="A-Down" action="Press">
514 <action name="DesktopNext"/>
515 </mousebind>
516 </context>
517 </mouse>
518
519 <menu>
520 <!-- You can specify more than one menu file in here and they are all loaded,
521 just don't make menu ids clash or, well, it'll be kind of pointless -->
522
523 <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
524 <file>menu.xml</file>
525 <hideDelay>200</hideDelay>
526 <middle>no</middle>
527 <submenuShowDelay>100</submenuShowDelay>
528 <applicationIcons>yes</applicationIcons>
529 </menu>
530
531 <!-- this section is commented out.. remove this and the ending comment if you
532 want to use it -->
533 <applications>
534 <!-- the name or the class can be set, or both. this is used to match
535 windows when they appear
536
537 role can optionally be set, and only as much as you provide will be
538 checked to see if it matches, eg. if you set role="abc" and the window's
539 role is actually "abcde" it would match.
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
545 <!-- each element can be left out or set to 'default' to specify to not
546 change that attribute of the window -->
547
548 <decor>yes</decor>
549
550 <shade>no</shade>
551
552 <position>
553 <!-- the position is only used if both an x and y coordinate are provided
554 (and not set to 'default') -->
555 <x>center</x>
556 <!-- a number or 'center' to center on screen -->
557 <y>200</y>
558 <!-- a number or 'center' to center on screen -->
559 <monitor>1</monitor>
560 <!-- specifies the monitor in a xinerama setup.
561 1 is the first head, or 'mouse' for wherever the mouse is -->
562 </position>
563
564 <focus>yes</focus>
565 <!-- if the window should try be given focus when it appears -->
566
567 <desktop>1</desktop>
568 <!-- 1 is the first desktop, 'all' for all desktops -->
569
570 <layer>normal</layer>
571 <!-- 'above', 'normal', or 'below' -->
572
573 <iconic>no</iconic>
574
575 <skip_pager>no</skip_pager>
576 <!-- asks to not be shown in pagers -->
577
578 <skip_taskbar>no</skip_taskbar>
579 <!-- asks to not be shown in taskbars. window cycling actions will also
580 skip past such windows -->
581
582 <fullscreen>yes</fullscreen>
583
584 <maximized>true</maximized>
585 <!-- 'Horizontal', 'Vertical' or boolean (yes/no/on/off/true/false) -->
586 </application>
587 </applications>
588 -->
589
590 </openbox_config>
This page took 0.063505 seconds and 4 git commands to generate.