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"
7 xmlns:xi="http://www.w3.org/2001/XInclude">
10 <strength>10</strength>
11 <screen_edge_strength>20</screen_edge_strength>
15 <focusNew>yes</focusNew>
16 <!-- always try to focus new windows when they appear. other rules do
18 <followMouse>yes</followMouse>
19 <!-- move focus to a window when you move the mouse into it -->
20 <focusLast>no</focusLast>
21 <!-- focus the last used window when changing desktops, instead of the one
22 under the mouse pointer. when followMouse is enabled -->
23 <underMouse>yes</underMouse>
24 <!-- move focus under the mouse, even when the mouse is not moving -->
25 <focusDelay>200</focusDelay>
26 <!-- when followMouse is enabled, the mouse must be inside the window for
27 this many milliseconds (1000 = 1 sec) before moving focus to it -->
28 <raiseOnFocus>no</raiseOnFocus>
29 <!-- when followMouse is enabled, and a window is given focus by moving the
30 mouse into it, also raise the window -->
34 <policy>Smart</policy>
35 <!-- 'Smart' or 'UnderMouse' -->
39 <name>Clearlooks</name>
40 <titleLayout>NLIMC</titleLayout>
42 avaible characters are NDSLIMC, each can occur at most once.
44 L: window label (AKA title).
48 S: shade (roll up/down)
49 D: omnipresent (on all desktops).
51 <keepBorder>yes</keepBorder>
52 <animateIconify>yes</animateIconify>
53 <font place="ActiveWindow">
56 <!-- font size in points -->
58 <!-- 'bold' or 'normal' -->
60 <!-- 'italic' or 'normal' -->
62 <font place="InactiveWindow">
65 <!-- font size in points -->
67 <!-- 'bold' or 'normal' -->
69 <!-- 'italic' or 'normal' -->
71 <font place="MenuHeader">
74 <!-- font size in points -->
75 <weight>normal</weight>
76 <!-- 'bold' or 'normal' -->
78 <!-- 'italic' or 'normal' -->
80 <font place="MenuItem">
83 <!-- font size in points -->
84 <weight>normal</weight>
85 <!-- 'bold' or 'normal' -->
87 <!-- 'italic' or 'normal' -->
89 <font place="OnScreenDisplay">
92 <!-- font size in points -->
94 <!-- 'bold' or 'normal' -->
96 <!-- 'italic' or 'normal' -->
101 <!-- this stuff is only used at startup, pagers allow you to change them
104 these are default values to use when other ones are not already set
105 by other applications, or saved in your session
107 use obconf if you want to change these without having to log out
110 <firstdesk>1</firstdesk>
112 <!-- set names up here if you want to, like this:
113 <name>desktop 1</name>
114 <name>desktop 2</name>
120 <drawContents>yes</drawContents>
121 <popupShow>Nonpixel</popupShow>
122 <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
123 <popupPosition>Center</popupPosition>
124 <!-- 'Center' or 'Top' -->
128 <position>TopLeft</position>
129 <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
130 <floatingX>0</floatingX>
131 <floatingY>0</floatingY>
132 <noStrut>no</noStrut>
133 <stacking>Above</stacking>
134 <!-- 'Above', 'Normal', or 'Below' -->
135 <direction>Vertical</direction>
136 <!-- 'Vertical' or 'Horizontal' -->
137 <autoHide>no</autoHide>
138 <hideDelay>300</hideDelay>
139 <!-- in milliseconds (1000 = 1 second) -->
140 <showDelay>300</showDelay>
141 <!-- in milliseconds (1000 = 1 second) -->
142 <moveButton>Middle</moveButton>
143 <!-- 'Left', 'Middle', 'Right' -->
147 <chainQuitKey>C-g</chainQuitKey>
149 <!-- Keybindings for desktop switching -->
150 <keybind key="C-A-Left">
151 <action name="DesktopLeft"><wrap>no</wrap></action>
153 <keybind key="C-A-Right">
154 <action name="DesktopRight"><wrap>no</wrap></action>
156 <keybind key="C-A-Up">
157 <action name="DesktopUp"><wrap>no</wrap></action>
159 <keybind key="C-A-Down">
160 <action name="DesktopDown"><wrap>no</wrap></action>
162 <keybind key="S-A-Left">
163 <action name="SendToDesktopLeft"><wrap>no</wrap></action>
165 <keybind key="S-A-Right">
166 <action name="SendToDesktopRight"><wrap>no</wrap></action>
168 <keybind key="S-A-Up">
169 <action name="SendToDesktopUp"><wrap>no</wrap></action>
171 <keybind key="S-A-Down">
172 <action name="SendToDesktopDown"><wrap>no</wrap></action>
175 <action name="Desktop"><desktop>1</desktop></action>
178 <action name="Desktop"><desktop>2</desktop></action>
181 <action name="Desktop"><desktop>3</desktop></action>
184 <action name="Desktop"><desktop>4</desktop></action>
187 <action name="ToggleShowDesktop"/>
190 <!-- Keybindings for windows -->
192 <action name="Close"/>
194 <keybind key="A-Escape">
195 <action name="Lower"/>
197 <keybind key="A-space">
198 <action name="ShowMenu"><menu>client-menu</menu></action>
201 <!-- Keybindings for window switching -->
202 <keybind key="A-Tab">
203 <action name="NextWindow"/>
205 <keybind key="A-S-Tab">
206 <action name="PreviousWindow"/>
208 <keybind key="C-A-Tab">
209 <action name="NextWindow">
210 <panels>yes</panels><desktop>yes</desktop>
214 <!-- Keybindings for running applications -->
216 <action name="Execute">
218 <enabled>true</enabled>
219 <name>Konqueror</name>
221 <command>kfmclient openProfile filemanagement</command>
227 <dragThreshold>8</dragThreshold>
228 <!-- number of pixels the mouse must move before a drag begins -->
229 <doubleClickTime>500</doubleClickTime>
230 <!-- in milliseconds (1000 = 1 second) -->
232 <context name="Frame">
233 <mousebind button="A-Left" action="Press">
234 <action name="Focus"/>
236 <mousebind button="A-Left" action="Click">
237 <action name="Raise"/>
239 <mousebind button="A-Left" action="Drag">
240 <action name="Move"/>
243 <mousebind button="A-Right" action="Press">
244 <action name="Focus"/>
246 <mousebind button="A-Right" action="Press">
247 <action name="Raise"/>
249 <mousebind button="A-Right" action="Drag">
250 <action name="Resize"/>
253 <mousebind button="A-Middle" action="Press">
254 <action name="Focus"/>
255 <action name="Lower"/>
258 <mousebind button="A-Up" action="Click">
259 <action name="DesktopPrevious"/>
261 <mousebind button="A-Down" action="Click">
262 <action name="DesktopNext"/>
264 <mousebind button="C-A-Up" action="Click">
265 <action name="DesktopPrevious"/>
267 <mousebind button="C-A-Down" action="Click">
268 <action name="DesktopNext"/>
270 <mousebind button="A-S-Up" action="Click">
271 <action name="SendToDesktopPrevious"/>
273 <mousebind button="A-S-Down" action="Click">
274 <action name="SendToDesktopNext"/>
278 <context name="Titlebar">
279 <mousebind button="Left" action="Press">
280 <action name="Focus"/>
282 <mousebind button="Left" action="Click">
283 <action name="Raise"/>
285 <mousebind button="Left" action="Drag">
286 <action name="Move"/>
288 <mousebind button="Left" action="DoubleClick">
289 <action name="ToggleMaximizeFull"/>
292 <mousebind button="Middle" action="Press">
293 <action name="Focus"/>
294 <action name="Lower"/>
297 <mousebind button="Up" action="Click">
298 <action name="Shade"/>
300 <mousebind button="Down" action="Click">
301 <action name="Unshade"/>
304 <mousebind button="Right" action="Press">
305 <action name="Focus"/>
306 <action name="ShowMenu"><menu>client-menu</menu></action>
311 <mousebind button="Left" action="Press">
312 <action name="Focus"/>
314 <mousebind button="Left" action="Click">
315 <action name="Raise"/>
317 <mousebind button="Left" action="Drag">
318 <action name="Resize"><edge>top</edge></action>
322 <context name="Left">
323 <mousebind button="Left" action="Press">
324 <action name="Focus"/>
326 <mousebind button="Left" action="Click">
327 <action name="Raise"/>
329 <mousebind button="Left" action="Drag">
330 <action name="Resize"><edge>left</edge></action>
334 <context name="Right">
335 <mousebind button="Left" action="Press">
336 <action name="Focus"/>
338 <mousebind button="Left" action="Click">
339 <action name="Raise"/>
341 <mousebind button="Left" action="Drag">
342 <action name="Resize"><edge>right</edge></action>
346 <context name="Handle">
347 <mousebind button="Left" action="Press">
348 <action name="Focus"/>
350 <mousebind button="Left" action="Click">
351 <action name="Raise"/>
353 <mousebind button="Left" action="Drag">
354 <action name="Resize"><edge>bottom</edge></action>
357 <mousebind button="Middle" action="Press">
358 <action name="Focus"/>
359 <action name="Lower"/>
362 <mousebind button="Right" action="Press">
363 <action name="Focus"/>
364 <action name="ShowMenu"><menu>client-menu</menu></action>
368 <context name="BLCorner">
369 <mousebind button="Left" action="Press">
370 <action name="Focus"/>
372 <mousebind button="Left" action="Click">
373 <action name="Raise"/>
375 <mousebind button="Left" action="Drag">
376 <action name="Resize"/>
380 <context name="BRCorner">
381 <mousebind button="Left" action="Press">
382 <action name="Focus"/>
384 <mousebind button="Left" action="Click">
385 <action name="Raise"/>
387 <mousebind button="Left" action="Drag">
388 <action name="Resize"/>
392 <context name="TLCorner">
393 <mousebind button="Left" action="Press">
394 <action name="Focus"/>
396 <mousebind button="Left" action="Click">
397 <action name="Raise"/>
399 <mousebind button="Left" action="Drag">
400 <action name="Resize"/>
404 <context name="TRCorner">
405 <mousebind button="Left" action="Press">
406 <action name="Focus"/>
408 <mousebind button="Left" action="Click">
409 <action name="Raise"/>
411 <mousebind button="Left" action="Drag">
412 <action name="Resize"/>
416 <context name="Client">
417 <mousebind button="Left" action="Press">
418 <action name="Focus"/>
420 <mousebind button="Middle" action="Press">
421 <action name="Focus"/>
423 <mousebind button="Right" action="Press">
424 <action name="Focus"/>
428 <context name="Icon">
429 <mousebind button="Left" action="Press">
430 <action name="Focus"/>
431 <action name="ShowMenu"><menu>client-menu</menu></action>
433 <mousebind button="Right" action="Press">
434 <action name="Focus"/>
435 <action name="ShowMenu"><menu>client-menu</menu></action>
439 <context name="AllDesktops">
440 <mousebind button="Left" action="Press">
441 <action name="Focus"/>
443 <mousebind button="Left" action="Click">
444 <action name="ToggleOmnipresent"/>
448 <context name="Shade">
449 <mousebind button="Left" action="Press">
450 <action name="Focus"/>
452 <mousebind button="Left" action="Click">
453 <action name="ToggleShade"/>
457 <context name="Iconify">
458 <mousebind button="Left" action="Press">
459 <action name="Focus"/>
461 <mousebind button="Left" action="Click">
462 <action name="Iconify"/>
466 <context name="Maximize">
467 <mousebind button="Left" action="Press">
468 <action name="Focus"/>
470 <mousebind button="Middle" action="Press">
471 <action name="Focus"/>
473 <mousebind button="Right" action="Press">
474 <action name="Focus"/>
476 <mousebind button="Left" action="Click">
477 <action name="ToggleMaximizeFull"/>
479 <mousebind button="Middle" action="Click">
480 <action name="ToggleMaximizeVert"/>
482 <mousebind button="Right" action="Click">
483 <action name="ToggleMaximizeHorz"/>
487 <context name="Close">
488 <mousebind button="Left" action="Press">
489 <action name="Focus"/>
491 <mousebind button="Left" action="Click">
492 <action name="Close"/>
496 <context name="Desktop">
497 <mousebind button="Up" action="Press">
498 <action name="DesktopPrevious"/>
500 <mousebind button="Down" action="Press">
501 <action name="DesktopNext"/>
504 <mousebind button="A-Up" action="Press">
505 <action name="DesktopPrevious"/>
507 <mousebind button="A-Down" action="Press">
508 <action name="DesktopNext"/>
510 <mousebind button="C-A-Up" action="Press">
511 <action name="DesktopPrevious"/>
513 <mousebind button="C-A-Down" action="Press">
514 <action name="DesktopNext"/>
517 <mousebind button="Left" action="Press">
518 <action name="Focus"/>
520 <mousebind button="Right" action="Press">
521 <action name="Focus"/>
525 <context name="Root">
527 <mousebind button="Middle" action="Press">
528 <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
530 <mousebind button="Right" action="Press">
531 <action name="ShowMenu"><menu>root-menu</menu></action>
535 <context name="MoveResize">
536 <mousebind button="Up" action="Press">
537 <action name="DesktopPrevious"/>
539 <mousebind button="Down" action="Press">
540 <action name="DesktopNext"/>
542 <mousebind button="A-Up" action="Press">
543 <action name="DesktopPrevious"/>
545 <mousebind button="A-Down" action="Press">
546 <action name="DesktopNext"/>
552 <!-- You can specify more than one menu file in here and they are all loaded,
553 just don't make menu ids clash or, well, it'll be kind of pointless -->
555 <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
556 <file>menu.xml</file>
557 <hideDelay>200</hideDelay>
559 <submenuShowDelay>100</submenuShowDelay>
560 <applicationIcons>yes</applicationIcons>
565 # this is an example with comments through out. use these to make your
566 # own rules, but without the comments of course.
568 <application name="first element of window's WM_CLASS property (see xprop)"
569 class="second element of window's WM_CLASS property (see xprop)"
570 role="the window's WM_WINDOW_ROLE property (see xprop)">
571 # the name or the class can be set, or both. this is used to match
572 # windows when they appear. role can optionally be set as well, to
573 # further restrict your matches.
575 # the name, class, and role use simple wildcard matching such as those
576 # used by a shell. you can use * to match any characters and ? to match
577 # any single character.
579 # when multiple rules match a window, they will all be applied, in the
580 # order that they appear in this list
583 # each element can be left out or set to 'default' to specify to not
584 # change that attribute of the window
587 # enable or disable window decorations
590 # make the window shaded when it appears, or not
593 # the position is only used if both an x and y coordinate are provided
594 # (and not set to 'default')
596 # a number like 50, or 'center' to center on screen
598 # a number like 50, or 'center' to center on screen
600 # specifies the monitor in a xinerama setup.
601 # 1 is the first head, or 'mouse' for wherever the mouse is
605 # if the window should try be given focus when it appears. if this is set
606 # to yes it doesn't guarantee the window will be given focus. some
607 # restrictions may apply, but Openbox will try to
610 # 1 is the first desktop, 'all' for all desktops
612 <layer>normal</layer>
613 # 'above', 'normal', or 'below'
616 # make the window iconified when it appears, or not
618 <skip_pager>no</skip_pager>
619 # asks to not be shown in pagers
621 <skip_taskbar>no</skip_taskbar>
622 # asks to not be shown in taskbars. window cycling actions will also
623 # skip past such windows
625 <fullscreen>yes</fullscreen>
626 # make the window in fullscreen mode when it appears
628 <maximized>true</maximized>
629 # 'Horizontal', 'Vertical' or boolean (yes/no)