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