1 <?xml version="1.0" encoding="UTF-8"?>
3 <!-- Do not edit this file, it will be overwritten on install.
4 Copy the file to $HOME/.config/openbox/ instead. -->
6 <openbox_config xmlns="http://openbox.org/3.4/rc">
9 <strength>10</strength>
10 <screen_edge_strength>20</screen_edge_strength>
14 <focusNew>yes</focusNew>
15 <!-- always try to focus new windows when they appear. other rules do
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 -->
33 <policy>Smart</policy>
34 <!-- 'Smart' or 'UnderMouse' -->
36 <!-- whether to place windows in the center of the free area found or
37 the top left corner -->
38 <monitor>Active</monitor>
39 <!-- with Smart placement on a multi-monitor system, try to place new windows
40 on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
41 the active window is -->
42 <primaryMonitor>1</primaryMonitor>
43 <!-- The monitor where Openbox should place popup dialogs such as the
44 focus cycling popup, or the desktop switch popup. It can be an index
45 from 1, specifying a particular monitor. Or it can be one of the
46 following: 'Mouse' - where the mouse is, or
47 'Active' - where the active window is -->
51 <name>Clearlooks</name>
52 <titleLayout>NLIMC</titleLayout>
54 available characters are NDSLIMC, each can occur at most once.
56 L: window label (AKA title).
60 S: shade (roll up/down)
61 D: omnipresent (on all desktops).
63 <keepBorder>yes</keepBorder>
64 <animateIconify>yes</animateIconify>
65 <font place="ActiveWindow">
68 <!-- font size in points -->
70 <!-- 'bold' or 'normal' -->
72 <!-- 'italic' or 'normal' -->
74 <font place="InactiveWindow">
77 <!-- font size in points -->
79 <!-- 'bold' or 'normal' -->
81 <!-- 'italic' or 'normal' -->
83 <font place="MenuHeader">
86 <!-- font size in points -->
87 <weight>normal</weight>
88 <!-- 'bold' or 'normal' -->
90 <!-- 'italic' or 'normal' -->
92 <font place="MenuItem">
95 <!-- font size in points -->
96 <weight>normal</weight>
97 <!-- 'bold' or 'normal' -->
99 <!-- 'italic' or 'normal' -->
101 <font place="OnScreenDisplay">
104 <!-- font size in points -->
105 <weight>bold</weight>
106 <!-- 'bold' or 'normal' -->
107 <slant>normal</slant>
108 <!-- 'italic' or 'normal' -->
113 <!-- this stuff is only used at startup, pagers allow you to change them
116 these are default values to use when other ones are not already set
117 by other applications, or saved in your session
119 use obconf if you want to change these without having to log out
122 <firstdesk>1</firstdesk>
124 <!-- set names up here if you want to, like this:
125 <name>desktop 1</name>
126 <name>desktop 2</name>
129 <popupTime>875</popupTime>
130 <!-- The number of milliseconds to show the popup for when switching
131 desktops. Set this to 0 to disable the popup. -->
135 <drawContents>yes</drawContents>
136 <popupShow>Nonpixel</popupShow>
137 <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
138 <popupPosition>Center</popupPosition>
139 <!-- 'Center', 'Top', or 'Fixed' -->
141 <!-- these are used if popupPosition is set to 'Fixed' -->
144 <!-- positive number for distance from left edge, negative number for
145 distance from right edge, or 'Center' -->
147 <!-- positive number for distance from top edge, negative number for
148 distance from bottom edge, or 'Center' -->
149 </popupFixedPosition>
152 <!-- You can reserve a portion of your screen where windows will not cover when
153 they are maximized, or when they are initially placed.
154 Many programs reserve space automatically, but you can use this in other
164 <position>TopLeft</position>
165 <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
166 <floatingX>0</floatingX>
167 <floatingY>0</floatingY>
168 <noStrut>no</noStrut>
169 <stacking>Above</stacking>
170 <!-- 'Above', 'Normal', or 'Below' -->
171 <direction>Vertical</direction>
172 <!-- 'Vertical' or 'Horizontal' -->
173 <autoHide>no</autoHide>
174 <hideDelay>300</hideDelay>
175 <!-- in milliseconds (1000 = 1 second) -->
176 <showDelay>300</showDelay>
177 <!-- in milliseconds (1000 = 1 second) -->
178 <moveButton>Middle</moveButton>
179 <!-- 'Left', 'Middle', 'Right' -->
183 <chainQuitKey>C-g</chainQuitKey>
185 <!-- Keybindings for desktop switching -->
186 <keybind key="C-A-Left">
187 <action name="DesktopLeft"><dialog>no</dialog><wrap>no</wrap></action>
189 <keybind key="C-A-Right">
190 <action name="DesktopRight"><dialog>no</dialog><wrap>no</wrap></action>
192 <keybind key="C-A-Up">
193 <action name="DesktopUp"><dialog>no</dialog><wrap>no</wrap></action>
195 <keybind key="C-A-Down">
196 <action name="DesktopDown"><dialog>no</dialog><wrap>no</wrap></action>
198 <keybind key="S-A-Left">
199 <action name="SendToDesktopLeft"><dialog>no</dialog><wrap>no</wrap></action>
201 <keybind key="S-A-Right">
202 <action name="SendToDesktopRight"><dialog>no</dialog><wrap>no</wrap></action>
204 <keybind key="S-A-Up">
205 <action name="SendToDesktopUp"><dialog>no</dialog><wrap>no</wrap></action>
207 <keybind key="S-A-Down">
208 <action name="SendToDesktopDown"><dialog>no</dialog><wrap>no</wrap></action>
211 <action name="Desktop"><desktop>1</desktop></action>
214 <action name="Desktop"><desktop>2</desktop></action>
217 <action name="Desktop"><desktop>3</desktop></action>
220 <action name="Desktop"><desktop>4</desktop></action>
223 <action name="ToggleShowDesktop"/>
226 <!-- Keybindings for windows -->
228 <action name="Close"/>
230 <keybind key="A-Escape">
231 <action name="Lower"/>
232 <action name="FocusToBottom"/>
233 <action name="Unfocus"/>
235 <keybind key="A-space">
236 <action name="ShowMenu"><menu>client-menu</menu></action>
239 <!-- Keybindings for window switching -->
240 <keybind key="A-Tab">
241 <action name="NextWindow"/>
243 <keybind key="A-S-Tab">
244 <action name="PreviousWindow"/>
246 <keybind key="C-A-Tab">
247 <action name="NextWindow">
248 <panels>yes</panels><desktop>yes</desktop>
252 <!-- Keybindings for running applications -->
254 <action name="Execute">
256 <enabled>true</enabled>
257 <name>Konqueror</name>
259 <command>kfmclient openProfile filemanagement</command>
265 <dragThreshold>8</dragThreshold>
266 <!-- number of pixels the mouse must move before a drag begins -->
267 <doubleClickTime>200</doubleClickTime>
268 <!-- in milliseconds (1000 = 1 second) -->
269 <screenEdgeWarpTime>400</screenEdgeWarpTime>
270 <!-- Time before changing desktops when the pointer touches the edge of the
271 screen while moving a window, in milliseconds (1000 = 1 second).
272 Set this to 0 to disable warping -->
274 <context name="Frame">
275 <mousebind button="A-Left" action="Press">
276 <action name="Focus"/>
277 <action name="Raise"/>
279 <mousebind button="A-Left" action="Click">
280 <action name="Unshade"/>
282 <mousebind button="A-Left" action="Drag">
283 <action name="Move"/>
286 <mousebind button="A-Right" action="Press">
287 <action name="Focus"/>
288 <action name="Raise"/>
289 <action name="Unshade"/>
291 <mousebind button="A-Right" action="Drag">
292 <action name="Resize"/>
295 <mousebind button="A-Middle" action="Press">
296 <action name="Lower"/>
297 <action name="FocusToBottom"/>
298 <action name="Unfocus"/>
301 <mousebind button="A-Up" action="Click">
302 <action name="DesktopPrevious"/>
304 <mousebind button="A-Down" action="Click">
305 <action name="DesktopNext"/>
307 <mousebind button="C-A-Up" action="Click">
308 <action name="DesktopPrevious"/>
310 <mousebind button="C-A-Down" action="Click">
311 <action name="DesktopNext"/>
313 <mousebind button="A-S-Up" action="Click">
314 <action name="SendToDesktopPrevious"/>
316 <mousebind button="A-S-Down" action="Click">
317 <action name="SendToDesktopNext"/>
321 <context name="Titlebar">
322 <mousebind button="Left" action="Press">
323 <action name="Focus"/>
324 <action name="Raise"/>
326 <mousebind button="Left" action="Drag">
327 <action name="Move"/>
329 <mousebind button="Left" action="DoubleClick">
330 <action name="ToggleMaximizeFull"/>
333 <mousebind button="Middle" action="Press">
334 <action name="Lower"/>
335 <action name="FocusToBottom"/>
336 <action name="Unfocus"/>
339 <mousebind button="Up" action="Click">
340 <action name="Shade"/>
341 <action name="FocusToBottom"/>
342 <action name="Unfocus"/>
343 <action name="Lower"/>
345 <mousebind button="Down" action="Click">
346 <action name="Unshade"/>
347 <action name="Raise"/>
350 <mousebind button="Right" action="Press">
351 <action name="Focus"/>
352 <action name="Raise"/>
353 <action name="ShowMenu"><menu>client-menu</menu></action>
358 <mousebind button="Left" action="Press">
359 <action name="Focus"/>
360 <action name="Raise"/>
361 <action name="Unshade"/>
363 <mousebind button="Left" action="Drag">
364 <action name="Resize"><edge>top</edge></action>
368 <context name="Left">
369 <mousebind button="Left" action="Press">
370 <action name="Focus"/>
371 <action name="Raise"/>
373 <mousebind button="Left" action="Drag">
374 <action name="Resize"><edge>left</edge></action>
378 <context name="Right">
379 <mousebind button="Left" action="Press">
380 <action name="Focus"/>
381 <action name="Raise"/>
383 <mousebind button="Left" action="Drag">
384 <action name="Resize"><edge>right</edge></action>
388 <context name="Bottom">
389 <mousebind button="Left" action="Press">
390 <action name="Focus"/>
391 <action name="Raise"/>
393 <mousebind button="Left" action="Drag">
394 <action name="Resize"><edge>bottom</edge></action>
397 <mousebind button="Middle" action="Press">
398 <action name="Lower"/>
399 <action name="FocusToBottom"/>
400 <action name="Unfocus"/>
403 <mousebind button="Right" action="Press">
404 <action name="Focus"/>
405 <action name="Raise"/>
406 <action name="ShowMenu"><menu>client-menu</menu></action>
410 <context name="BLCorner">
411 <mousebind button="Left" action="Press">
412 <action name="Focus"/>
413 <action name="Raise"/>
415 <mousebind button="Left" action="Drag">
416 <action name="Resize"/>
420 <context name="BRCorner">
421 <mousebind button="Left" action="Press">
422 <action name="Focus"/>
423 <action name="Raise"/>
425 <mousebind button="Left" action="Drag">
426 <action name="Resize"/>
430 <context name="TLCorner">
431 <mousebind button="Left" action="Press">
432 <action name="Focus"/>
433 <action name="Raise"/>
434 <action name="Unshade"/>
436 <mousebind button="Left" action="Drag">
437 <action name="Resize"/>
441 <context name="TRCorner">
442 <mousebind button="Left" action="Press">
443 <action name="Focus"/>
444 <action name="Raise"/>
445 <action name="Unshade"/>
447 <mousebind button="Left" action="Drag">
448 <action name="Resize"/>
452 <context name="Client">
453 <mousebind button="Left" action="Press">
454 <action name="Focus"/>
455 <action name="Raise"/>
457 <mousebind button="Middle" action="Press">
458 <action name="Focus"/>
459 <action name="Raise"/>
461 <mousebind button="Right" action="Press">
462 <action name="Focus"/>
463 <action name="Raise"/>
467 <context name="Icon">
468 <mousebind button="Left" action="Press">
469 <action name="Focus"/>
470 <action name="Raise"/>
471 <action name="Unshade"/>
472 <action name="ShowMenu"><menu>client-menu</menu></action>
474 <mousebind button="Right" action="Press">
475 <action name="Focus"/>
476 <action name="Raise"/>
477 <action name="ShowMenu"><menu>client-menu</menu></action>
481 <context name="AllDesktops">
482 <mousebind button="Left" action="Press">
483 <action name="Focus"/>
484 <action name="Raise"/>
485 <action name="Unshade"/>
487 <mousebind button="Left" action="Click">
488 <action name="ToggleOmnipresent"/>
492 <context name="Shade">
493 <mousebind button="Left" action="Press">
494 <action name="Focus"/>
495 <action name="Raise"/>
497 <mousebind button="Left" action="Click">
498 <action name="ToggleShade"/>
502 <context name="Iconify">
503 <mousebind button="Left" action="Press">
504 <action name="Focus"/>
505 <action name="Raise"/>
507 <mousebind button="Left" action="Click">
508 <action name="Iconify"/>
512 <context name="Maximize">
513 <mousebind button="Left" action="Press">
514 <action name="Focus"/>
515 <action name="Raise"/>
516 <action name="Unshade"/>
518 <mousebind button="Middle" action="Press">
519 <action name="Focus"/>
520 <action name="Raise"/>
521 <action name="Unshade"/>
523 <mousebind button="Right" action="Press">
524 <action name="Focus"/>
525 <action name="Raise"/>
526 <action name="Unshade"/>
528 <mousebind button="Left" action="Click">
529 <action name="ToggleMaximizeFull"/>
531 <mousebind button="Middle" action="Click">
532 <action name="ToggleMaximizeVert"/>
534 <mousebind button="Right" action="Click">
535 <action name="ToggleMaximizeHorz"/>
539 <context name="Close">
540 <mousebind button="Left" action="Press">
541 <action name="Focus"/>
542 <action name="Raise"/>
543 <action name="Unshade"/>
545 <mousebind button="Left" action="Click">
546 <action name="Close"/>
550 <context name="Desktop">
551 <mousebind button="Up" action="Click">
552 <action name="DesktopPrevious"/>
554 <mousebind button="Down" action="Click">
555 <action name="DesktopNext"/>
558 <mousebind button="A-Up" action="Click">
559 <action name="DesktopPrevious"/>
561 <mousebind button="A-Down" action="Click">
562 <action name="DesktopNext"/>
564 <mousebind button="C-A-Up" action="Click">
565 <action name="DesktopPrevious"/>
567 <mousebind button="C-A-Down" action="Click">
568 <action name="DesktopNext"/>
571 <mousebind button="Left" action="Press">
572 <action name="Focus"/>
573 <action name="Raise"/>
575 <mousebind button="Right" action="Press">
576 <action name="Focus"/>
577 <action name="Raise"/>
581 <context name="Root">
583 <mousebind button="Middle" action="Press">
584 <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
586 <mousebind button="Right" action="Press">
587 <action name="ShowMenu"><menu>root-menu</menu></action>
591 <context name="MoveResize">
592 <mousebind button="Up" action="Click">
593 <action name="DesktopPrevious"/>
595 <mousebind button="Down" action="Click">
596 <action name="DesktopNext"/>
598 <mousebind button="A-Up" action="Click">
599 <action name="DesktopPrevious"/>
601 <mousebind button="A-Down" action="Click">
602 <action name="DesktopNext"/>
608 <!-- You can specify more than one menu file in here and they are all loaded,
609 just don't make menu ids clash or, well, it'll be kind of pointless -->
611 <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
612 <file>menu.xml</file>
613 <hideDelay>200</hideDelay>
614 <!-- if a press-release lasts longer than this setting (in milliseconds), the
615 menu is hidden again -->
617 <!-- center submenus vertically about the parent entry -->
618 <submenuShowDelay>200</submenuShowDelay>
619 <!-- time to delay before showing a submenu after hovering over the parent
621 if this is a negative value, then the delay is infinite and the
622 submenu will not be shown until it is clicked on -->
623 <submenuHideDelay>400</submenuHideDelay>
624 <!-- time to delay before hiding a submenu when selecting another
625 entry in parent menu -->
626 if this is a negative value, then the delay is infinite and the
627 submenu will not be hidden until a different submenu is opened -->
628 <applicationIcons>yes</applicationIcons>
629 <!-- controls if icons appear in the client-list-(combined-)menu -->
630 <manageDesktops>yes</manageDesktops>
631 <!-- show the manage desktops section in the client-list-(combined-)menu -->
636 # this is an example with comments through out. use these to make your
637 # own rules, but without the comments of course.
639 <application name="the window's _OB_NAME property (see obxprop)"
640 class="the window's _OB_CLASS property (see obxprop)"
641 role="the window's _OB_ROLE property (see obxprop)"
642 type="the window's _NET_WM_WINDOW_TYPE (see obxprob)..
643 (if unspecified, then it is 'dialog' for child windows)">
644 # the name or the class can be set, or both. this is used to match
645 # windows when they appear. role can optionally be set as well, to
646 # further restrict your matches.
648 # the name, class, and role use simple wildcard matching such as those
649 # used by a shell. you can use * to match any characters and ? to match
650 # any single character.
652 # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
655 # when multiple rules match a window, they will all be applied, in the
656 # order that they appear in this list
659 # each element can be left out or set to 'default' to specify to not
660 # change that attribute of the window
663 # enable or disable window decorations
666 # make the window shaded when it appears, or not
668 <position force="no">
669 # the position is only used if both an x and y coordinate are provided
670 # (and not set to 'default')
671 # when force is "yes", then the window will be placed here even if it
672 # says you want it placed elsewhere. this is to override buggy
673 # applications who refuse to behave
675 # a number like 50, or 'center' to center on screen. use a negative number
676 # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
677 # right edge (or bottom).
680 # specifies the monitor in a xinerama setup.
681 # 1 is the first head, or 'mouse' for wherever the mouse is
685 # if the window should try be given focus when it appears. if this is set
686 # to yes it doesn't guarantee the window will be given focus. some
687 # restrictions may apply, but Openbox will try to
690 # 1 is the first desktop, 'all' for all desktops
692 <layer>normal</layer>
693 # 'above', 'normal', or 'below'
696 # make the window iconified when it appears, or not
698 <skip_pager>no</skip_pager>
699 # asks to not be shown in pagers
701 <skip_taskbar>no</skip_taskbar>
702 # asks to not be shown in taskbars. window cycling actions will also
703 # skip past such windows
705 <fullscreen>yes</fullscreen>
706 # make the window in fullscreen mode when it appears
708 <maximized>true</maximized>
709 # 'Horizontal', 'Vertical' or boolean (yes/no)