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>no</followMouse>
19
<!-- move focus to a window when you move the mouse into it -->
20
<focusLast>yes</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>no</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' -->
36
<monitor>Primary</monitor>
37
<!-- with Smart placement on a multi-monitor system, try to place new windows
38
on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
39
the active window is, 'Primary' - only on the primary monitor -->
40
<primaryMonitor>1</primaryMonitor>
41
<!-- The monitor where Openbox should place popup dialogs such as the
42
focus cycling popup, or the desktop switch popup. It can be an index
43
from 1, specifying a particular monitor. Or it can be one of the
44
following: 'Mouse' - where the mouse is, or
45
'Active' - where the active window is -->
49
<name>Clearlooks</name>
50
<titleLayout>NLIMC</titleLayout>
52
available characters are NDSLIMC, each can occur at most once.
54
L: window label (AKA title).
58
S: shade (roll up/down)
59
D: omnipresent (on all desktops).
61
<keepBorder>yes</keepBorder>
62
<animateIconify>yes</animateIconify>
63
<font place="ActiveWindow">
66
<!-- font size in points -->
68
<!-- 'bold' or 'normal' -->
70
<!-- 'italic' or 'normal' -->
72
<font place="InactiveWindow">
75
<!-- font size in points -->
77
<!-- 'bold' or 'normal' -->
79
<!-- 'italic' or 'normal' -->
81
<font place="MenuHeader">
84
<!-- font size in points -->
85
<weight>normal</weight>
86
<!-- 'bold' or 'normal' -->
88
<!-- 'italic' or 'normal' -->
90
<font place="MenuItem">
93
<!-- font size in points -->
94
<weight>normal</weight>
95
<!-- 'bold' or 'normal' -->
97
<!-- 'italic' or 'normal' -->
99
<font place="ActiveOnScreenDisplay">
102
<!-- font size in points -->
103
<weight>bold</weight>
104
<!-- 'bold' or 'normal' -->
105
<slant>normal</slant>
106
<!-- 'italic' or 'normal' -->
108
<font place="InactiveOnScreenDisplay">
111
<!-- font size in points -->
112
<weight>bold</weight>
113
<!-- 'bold' or 'normal' -->
114
<slant>normal</slant>
115
<!-- 'italic' or 'normal' -->
120
<!-- this stuff is only used at startup, pagers allow you to change them
123
these are default values to use when other ones are not already set
124
by other applications, or saved in your session
126
use obconf if you want to change these without having to log out
129
<firstdesk>1</firstdesk>
131
<!-- set names up here if you want to, like this:
132
<name>desktop 1</name>
133
<name>desktop 2</name>
136
<popupTime>875</popupTime>
137
<!-- The number of milliseconds to show the popup for when switching
138
desktops. Set this to 0 to disable the popup. -->
142
<drawContents>yes</drawContents>
143
<popupShow>Nonpixel</popupShow>
144
<!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
145
<popupPosition>Center</popupPosition>
146
<!-- 'Center', 'Top', or 'Fixed' -->
148
<!-- these are used if popupPosition is set to 'Fixed' -->
151
<!-- positive number for distance from left edge, negative number for
152
distance from right edge, or 'Center' -->
154
<!-- positive number for distance from top edge, negative number for
155
distance from bottom edge, or 'Center' -->
156
</popupFixedPosition>
159
<!-- You can reserve a portion of your screen where windows will not cover when
160
they are maximized, or when they are initially placed.
161
Many programs reserve space automatically, but you can use this in other
171
<position>TopLeft</position>
172
<!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
173
<floatingX>0</floatingX>
174
<floatingY>0</floatingY>
175
<noStrut>no</noStrut>
176
<stacking>Above</stacking>
177
<!-- 'Above', 'Normal', or 'Below' -->
178
<direction>Vertical</direction>
179
<!-- 'Vertical' or 'Horizontal' -->
180
<autoHide>no</autoHide>
181
<hideDelay>300</hideDelay>
182
<!-- in milliseconds (1000 = 1 second) -->
183
<showDelay>300</showDelay>
184
<!-- in milliseconds (1000 = 1 second) -->
185
<moveButton>Middle</moveButton>
186
<!-- 'Left', 'Middle', 'Right' -->
190
<chainQuitKey>C-g</chainQuitKey>
192
<!-- Keybindings for desktop switching -->
193
<keybind key="C-A-Left">
194
<action name="GoToDesktop"><to>left</to><wrap>no</wrap></action>
196
<keybind key="C-A-Right">
197
<action name="GoToDesktop"><to>right</to><wrap>no</wrap></action>
199
<keybind key="C-A-Up">
200
<action name="GoToDesktop"><to>up</to><wrap>no</wrap></action>
202
<keybind key="C-A-Down">
203
<action name="GoToDesktop"><to>down</to><wrap>no</wrap></action>
205
<keybind key="S-A-Left">
206
<action name="SendToDesktop"><to>left</to><wrap>no</wrap></action>
208
<keybind key="S-A-Right">
209
<action name="SendToDesktop"><to>right</to><wrap>no</wrap></action>
211
<keybind key="S-A-Up">
212
<action name="SendToDesktop"><to>up</to><wrap>no</wrap></action>
214
<keybind key="S-A-Down">
215
<action name="SendToDesktop"><to>down</to><wrap>no</wrap></action>
218
<action name="GoToDesktop"><to>1</to></action>
221
<action name="GoToDesktop"><to>2</to></action>
224
<action name="GoToDesktop"><to>3</to></action>
227
<action name="GoToDesktop"><to>4</to></action>
230
<action name="ToggleShowDesktop"/>
233
<!-- Keybindings for windows -->
235
<action name="Close"/>
237
<keybind key="A-Escape">
238
<action name="Lower"/>
239
<action name="FocusToBottom"/>
240
<action name="Unfocus"/>
242
<keybind key="A-space">
243
<action name="ShowMenu"><menu>client-menu</menu></action>
245
<!-- Take a screenshot of the current window with gnome-screenshot when Alt+Print are pressed -->
246
<keybind key="A-Print">
247
<action name="Execute"><command>gnome-screenshot -w</command></action>
250
<!-- Keybindings for window switching -->
251
<keybind key="A-Tab">
252
<action name="NextWindow">
254
<action name="Focus"/>
255
<action name="Raise"/>
256
<action name="Unshade"/>
260
<keybind key="A-S-Tab">
261
<action name="PreviousWindow">
263
<action name="Focus"/>
264
<action name="Raise"/>
265
<action name="Unshade"/>
269
<keybind key="C-A-Tab">
270
<action name="NextWindow">
271
<panels>yes</panels><desktop>yes</desktop>
273
<action name="Focus"/>
274
<action name="Raise"/>
275
<action name="Unshade"/>
280
<!-- Keybindings for window switching with the arrow keys -->
281
<keybind key="W-S-Right">
282
<action name="DirectionalCycleWindows">
283
<direction>right</direction>
286
<keybind key="W-S-Left">
287
<action name="DirectionalCycleWindows">
288
<direction>left</direction>
291
<keybind key="W-S-Up">
292
<action name="DirectionalCycleWindows">
293
<direction>up</direction>
296
<keybind key="W-S-Down">
297
<action name="DirectionalCycleWindows">
298
<direction>down</direction>
302
<!-- Keybindings for running applications -->
304
<action name="Execute">
306
<enabled>true</enabled>
307
<name>Konqueror</name>
309
<command>kfmclient openProfile filemanagement</command>
312
<!-- Launch gnome-screenshot when Print is pressed -->
313
<keybind key="Print">
314
<action name="Execute"><command>gnome-screenshot</command></action>
319
<dragThreshold>1</dragThreshold>
320
<!-- number of pixels the mouse must move before a drag begins -->
321
<doubleClickTime>500</doubleClickTime>
322
<!-- in milliseconds (1000 = 1 second) -->
323
<screenEdgeWarpTime>400</screenEdgeWarpTime>
324
<!-- Time before changing desktops when the pointer touches the edge of the
325
screen while moving a window, in milliseconds (1000 = 1 second).
326
Set this to 0 to disable warping -->
327
<screenEdgeWarpMouse>false</screenEdgeWarpMouse>
328
<!-- Set this to TRUE to move the mouse pointer across the desktop when
329
switching due to hitting the edge of the screen -->
331
<context name="Frame">
332
<mousebind button="A-Left" action="Press">
333
<action name="Focus"/>
334
<action name="Raise"/>
336
<mousebind button="A-Left" action="Click">
337
<action name="Unshade"/>
339
<mousebind button="A-Left" action="Drag">
340
<action name="Move"/>
343
<mousebind button="A-Right" action="Press">
344
<action name="Focus"/>
345
<action name="Raise"/>
346
<action name="Unshade"/>
348
<mousebind button="A-Right" action="Drag">
349
<action name="Resize"/>
352
<mousebind button="A-Middle" action="Press">
353
<action name="Lower"/>
354
<action name="FocusToBottom"/>
355
<action name="Unfocus"/>
358
<mousebind button="A-Up" action="Click">
359
<action name="GoToDesktop"><to>previous</to></action>
361
<mousebind button="A-Down" action="Click">
362
<action name="GoToDesktop"><to>next</to></action>
364
<mousebind button="C-A-Up" action="Click">
365
<action name="GoToDesktop"><to>previous</to></action>
367
<mousebind button="C-A-Down" action="Click">
368
<action name="GoToDesktop"><to>next</to></action>
370
<mousebind button="A-S-Up" action="Click">
371
<action name="SendToDesktop"><to>previous</to></action>
373
<mousebind button="A-S-Down" action="Click">
374
<action name="SendToDesktop"><to>next</to></action>
378
<context name="Titlebar">
379
<mousebind button="Left" action="Drag">
380
<action name="Move"/>
382
<mousebind button="Left" action="DoubleClick">
383
<action name="ToggleMaximize"/>
386
<mousebind button="Up" action="Click">
390
<action name="Shade"/>
391
<action name="FocusToBottom"/>
392
<action name="Unfocus"/>
393
<action name="Lower"/>
397
<mousebind button="Down" action="Click">
401
<action name="Unshade"/>
402
<action name="Raise"/>
408
<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
409
<mousebind button="Left" action="Press">
410
<action name="Focus"/>
411
<action name="Raise"/>
412
<action name="Unshade"/>
415
<mousebind button="Middle" action="Press">
416
<action name="Lower"/>
417
<action name="FocusToBottom"/>
418
<action name="Unfocus"/>
421
<mousebind button="Right" action="Press">
422
<action name="Focus"/>
423
<action name="Raise"/>
424
<action name="ShowMenu"><menu>client-menu</menu></action>
429
<mousebind button="Left" action="Drag">
430
<action name="Resize"><edge>top</edge></action>
434
<context name="Left">
435
<mousebind button="Left" action="Drag">
436
<action name="Resize"><edge>left</edge></action>
440
<context name="Right">
441
<mousebind button="Left" action="Drag">
442
<action name="Resize"><edge>right</edge></action>
446
<context name="Bottom">
447
<mousebind button="Left" action="Drag">
448
<action name="Resize"><edge>bottom</edge></action>
451
<mousebind button="Right" action="Press">
452
<action name="Focus"/>
453
<action name="Raise"/>
454
<action name="ShowMenu"><menu>client-menu</menu></action>
458
<context name="TRCorner BRCorner TLCorner BLCorner">
459
<mousebind button="Left" action="Press">
460
<action name="Focus"/>
461
<action name="Raise"/>
462
<action name="Unshade"/>
464
<mousebind button="Left" action="Drag">
465
<action name="Resize"/>
469
<context name="Client">
470
<mousebind button="Left" action="Press">
471
<action name="Focus"/>
472
<action name="Raise"/>
474
<mousebind button="Middle" action="Press">
475
<action name="Focus"/>
476
<action name="Raise"/>
478
<mousebind button="Right" action="Press">
479
<action name="Focus"/>
480
<action name="Raise"/>
484
<context name="Icon">
485
<mousebind button="Left" action="Press">
486
<action name="Focus"/>
487
<action name="Raise"/>
488
<action name="Unshade"/>
489
<action name="ShowMenu"><menu>client-menu</menu></action>
491
<mousebind button="Right" action="Press">
492
<action name="Focus"/>
493
<action name="Raise"/>
494
<action name="ShowMenu"><menu>client-menu</menu></action>
498
<context name="AllDesktops">
499
<mousebind button="Left" action="Press">
500
<action name="Focus"/>
501
<action name="Raise"/>
502
<action name="Unshade"/>
504
<mousebind button="Left" action="Click">
505
<action name="ToggleOmnipresent"/>
509
<context name="Shade">
510
<mousebind button="Left" action="Press">
511
<action name="Focus"/>
512
<action name="Raise"/>
514
<mousebind button="Left" action="Click">
515
<action name="ToggleShade"/>
519
<context name="Iconify">
520
<mousebind button="Left" action="Press">
521
<action name="Focus"/>
522
<action name="Raise"/>
524
<mousebind button="Left" action="Click">
525
<action name="Iconify"/>
529
<context name="Maximize">
530
<mousebind button="Left" action="Press">
531
<action name="Focus"/>
532
<action name="Raise"/>
533
<action name="Unshade"/>
535
<mousebind button="Middle" action="Press">
536
<action name="Focus"/>
537
<action name="Raise"/>
538
<action name="Unshade"/>
540
<mousebind button="Right" action="Press">
541
<action name="Focus"/>
542
<action name="Raise"/>
543
<action name="Unshade"/>
545
<mousebind button="Left" action="Click">
546
<action name="ToggleMaximize"/>
548
<mousebind button="Middle" action="Click">
549
<action name="ToggleMaximize"><direction>vertical</direction></action>
551
<mousebind button="Right" action="Click">
552
<action name="ToggleMaximize"><direction>horizontal</direction></action>
556
<context name="Close">
557
<mousebind button="Left" action="Press">
558
<action name="Focus"/>
559
<action name="Raise"/>
560
<action name="Unshade"/>
562
<mousebind button="Left" action="Click">
563
<action name="Close"/>
567
<context name="Desktop">
568
<mousebind button="Up" action="Click">
569
<action name="GoToDesktop"><to>previous</to></action>
571
<mousebind button="Down" action="Click">
572
<action name="GoToDesktop"><to>next</to></action>
575
<mousebind button="A-Up" action="Click">
576
<action name="GoToDesktop"><to>previous</to></action>
578
<mousebind button="A-Down" action="Click">
579
<action name="GoToDesktop"><to>next</to></action>
581
<mousebind button="C-A-Up" action="Click">
582
<action name="GoToDesktop"><to>previous</to></action>
584
<mousebind button="C-A-Down" action="Click">
585
<action name="GoToDesktop"><to>next</to></action>
588
<mousebind button="Left" action="Press">
589
<action name="Focus"/>
590
<action name="Raise"/>
592
<mousebind button="Right" action="Press">
593
<action name="Focus"/>
594
<action name="Raise"/>
598
<context name="Root">
600
<mousebind button="Middle" action="Press">
601
<action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
603
<mousebind button="Right" action="Press">
604
<action name="ShowMenu"><menu>root-menu</menu></action>
608
<context name="MoveResize">
609
<mousebind button="Up" action="Click">
610
<action name="GoToDesktop"><to>previous</to></action>
612
<mousebind button="Down" action="Click">
613
<action name="GoToDesktop"><to>next</to></action>
615
<mousebind button="A-Up" action="Click">
616
<action name="GoToDesktop"><to>previous</to></action>
618
<mousebind button="A-Down" action="Click">
619
<action name="GoToDesktop"><to>next</to></action>
625
<!-- You can specify more than one menu file in here and they are all loaded,
626
just don't make menu ids clash or, well, it'll be kind of pointless -->
628
<!-- default menu file (or custom one in $HOME/.config/openbox/) -->
629
<!-- system menu files on Debian systems -->
630
<file>/var/lib/openbox/debian-menu.xml</file>
631
<file>menu.xml</file>
632
<hideDelay>200</hideDelay>
633
<!-- if a press-release lasts longer than this setting (in milliseconds), the
634
menu is hidden again -->
636
<!-- center submenus vertically about the parent entry -->
637
<submenuShowDelay>100</submenuShowDelay>
638
<!-- time to delay before showing a submenu after hovering over the parent
640
if this is a negative value, then the delay is infinite and the
641
submenu will not be shown until it is clicked on -->
642
<submenuHideDelay>400</submenuHideDelay>
643
<!-- time to delay before hiding a submenu when selecting another
645
if this is a negative value, then the delay is infinite and the
646
submenu will not be hidden until a different submenu is opened -->
647
<showIcons>yes</showIcons>
648
<!-- controls if icons appear in the client-list-(combined-)menu -->
649
<manageDesktops>yes</manageDesktops>
650
<!-- show the manage desktops section in the client-list-(combined-)menu -->
655
# this is an example with comments through out. use these to make your
656
# own rules, but without the comments of course.
657
# you may use one or more of the name/class/role/title/type rules to specify
660
<application name="the window's _OB_APP_NAME property (see obxprop)"
661
class="the window's _OB_APP_CLASS property (see obxprop)"
662
groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
663
groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
664
role="the window's _OB_APP_ROLE property (see obxprop)"
665
title="the window's _OB_APP_TITLE property (see obxprop)"
666
type="the window's _OB_APP_TYPE property (see obxprob)..
667
(if unspecified, then it is 'dialog' for child windows)">
668
# you may set only one of name/class/role/title/type, or you may use more
669
# than one together to restrict your matches.
671
# the name, class, role, and title use simple wildcard matching such as those
672
# used by a shell. you can use * to match any characters and ? to match
673
# any single character.
675
# the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
678
# when multiple rules match a window, they will all be applied, in the
679
# order that they appear in this list
682
# each rule element can be left out or set to 'default' to specify to not
683
# change that attribute of the window
686
# enable or disable window decorations
689
# make the window shaded when it appears, or not
691
<position force="no">
692
# the position is only used if both an x and y coordinate are provided
693
# (and not set to 'default')
694
# when force is "yes", then the window will be placed here even if it
695
# says you want it placed elsewhere. this is to override buggy
696
# applications who refuse to behave
698
# a number like 50, or 'center' to center on screen. use a negative number
699
# to start from the right (or bottom for <y>), ie -50 is 50 pixels from
700
# the right edge (or bottom). use 'default' to specify using value
701
# provided by the application, or chosen by openbox, instead.
704
# specifies the monitor in a xinerama setup.
705
# 1 is the first head, or 'mouse' for wherever the mouse is
709
# the size to make the window.
711
# a number like 20, or 'default' to use the size given by the application.
712
# you can use fractions such as 1/2 or percentages such as 75% in which
713
# case the value is relative to the size of the monitor that the window
719
# if the window should try be given focus when it appears. if this is set
720
# to yes it doesn't guarantee the window will be given focus. some
721
# restrictions may apply, but Openbox will try to
724
# 1 is the first desktop, 'all' for all desktops
726
<layer>normal</layer>
727
# 'above', 'normal', or 'below'
730
# make the window iconified when it appears, or not
732
<skip_pager>no</skip_pager>
733
# asks to not be shown in pagers
735
<skip_taskbar>no</skip_taskbar>
736
# asks to not be shown in taskbars. window cycling actions will also
737
# skip past such windows
739
<fullscreen>yes</fullscreen>
740
# make the window in fullscreen mode when it appears
742
<maximized>true</maximized>
743
# 'Horizontal', 'Vertical' or boolean (yes/no)