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