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