Debian Codegraph @

debian/docs/details.html

raw
1 <a href="toc.html">Table of Contents</a>
2
3 <h1>Details of the Config Files</h1>
4
5 <h2><a name="keybindings"></a>Key Bindings</h2>
6
7 <h3>Introduction</h3>
8
9 <p>
10 Key bindings are used to bind <a href="#actions">actions</a> to key
11 combinations. Whenever the combination is pressed, the actions bound to it will
12 be executed.
13 </p>
14
15 <p>
16 Key bindings are found in the <b>keyboard</b> section of the <b>rc.xml</b>
17 file. Any key bindings outside of the keyboard section will be ignored.
18 </p>
19
20 <h3>Syntax</h3>
21
22 <p>
23 Key bindings are specified using the following:
24 </p>
25
26 <blockquote>
27 &lt;keybind key="KEY COMBO"&gt;<br />
28 &nbsp;&nbsp;ACTIONS<br />
29 &lt;/keybind&gt;
30 </blockquote>
31
32 <p>
33 Any number of <a href="#actions">actions</a> may appear in a keybind.
34 </p>
35
36 <p>
37 <b>KEY COMBO</b> is the key combination to be bound. The key combo has the
38 following syntax: <b>Modifier-Modifier-Key</b>. Any number of modifiers can
39 be specified, following each one with a '-'. The available modifiers are:
40 </p>
41
42 <ul>
43 <li><b>S</b> - the Shift key</li>
44 <li><b>C</b> - the Control key</li>
45 <li><b>A</b> - the Alt key</li>
46 <li><b>W</b> - the Windows keys</li>
47 <li><b>M</b> - Mod3, not set by default i think</li>
48 </ul>
49
50 <p>
51 Mod1 though Mod5 may also be used as modifiers. The xmodmap tool is used to
52 set these up. The A and W modifiers are merely aliases for Mod1 and Mod4.
53 </p>
54
55 <p>
56 The Key is the name of the key, such as 'a' or 'F1' or '4'. You can find the
57 name of a key by running <b>xev</b> in a terminal, pressing the key, and
58 watching the output from xev in the terminal.
59 </p>
60
61 <p>
62 <b>ACTIONS</b> is any number of <a href="#actions">actions</a> which will be
63 executed when the key combination is pressed.
64 </p>
65
66 <h3>Chaining</h3>
67
68 <p>
69 Key-chains, as first seen in Emacs, are possible by simply nesting the key bindings. For example:
70 </p>
71
72 <blockquote>
73 &lt;keybind key="C-f"&gt;<br />
74 &nbsp;&nbsp;&lt;keybind key="x"&gt;<br />
75 &nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
76 &nbsp;&nbsp;&lt;/keybind&gt;<br />
77 &lt;/keybind&gt;
78 </blockquote>
79
80 <p>
81 The actions bound in this example would be fired by first pressing "C-f" (Hold Control - Press f), and then releasing everything and pressing "x".
82 </p>
83
84 <p>
85 If you begin a key-chain, you will be unable to type in your applications until you complete the chain. After a short wait the chain will time out, and be cancelled. You may also cancel out of a chain by using the "C-g" (Hold Control - Press g) key sequence (the same as is used in Emacs). The cancelling key sequence is configurable if desired.
86 </p>
87
88 <h2><a name="mousebindings"></a>Mouse Bindings</h2>
89
90 <h3>Introduction</h3>
91
92 <p>
93 Mouse bindings are used to bind <a href="#actions">actions</a> to mouse interactions. These control most of Openbox's behavior, from what happens when you click the Close button in a window's titlebar to how you drag windows to move them around the screen.
94 </p>
95
96 <p>
97 Mouse bindings are found in the <b>mouse</b> section of the <b>rc.xml</b> file. Any mouse bindings outside of the mouse section will be ignored.
98 </p>
99
100 <h3>Syntax</h3>
101
102 <p>
103 Mouse bindings are specified using the following:
104 </p>
105
106 <blockquote>
107 &lt;context name="CONTEXT"&gt;<br />
108 &nbsp;&nbsp;&lt;mousebind button="BUTTON" action="INTERACTION"&gt;<br />
109 &nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
110 &nbsp;&nbsp;&lt;/mousebind&gt;<br />
111 &lt;/context&gt;
112 </blockquote>
113
114 <p>
115 Any number of mousebinds may appear in a context, and any number of <a href="#actions">actions</a> may appear in a mousebind.
116 </p>
117
118 <p>
119 First, some definitions:
120 </p>
121 <ul>
122 <li>
123 <b>Decorations</b> - The decorations drawn by Openbox around your applications. This includes the
124 <b>Titlebar</b> displayed on the top of each window, with the title, and some buttons in it. It also includes
125 the <b>Handle</b> displayed on the bottom of each window.
126 </li>
127 <li>
128 <b>Client area</b> - The applications themselves. This is the section of the window inside the
129 <b>Decorations</b>.
130 </li>
131 </ul>
132
133 <p>
134 <b>CONTEXT</b> is the context in which the mouse interaction is taking place. The possible contexts are:
135 </p>
136 <ul>
137 <li>
138 <b>Frame</b> - Includes the entirety of all windows. This includes on their decorations <i>and</i> in their
139 <b>Client area</b>. <b>Note:</b> When a button is bound in this context, the clicks <b>will not</b> be
140 passed through to the application. Use with care.
141 </li>
142 <li>
143 <b>Client</b> - The <b>Client area</b> of all windows. <b>Notes:</b> When a button is bound in this
144 context, the clicks <b>will</b> be passed through to the application. Because of how these are handled,
145 <b>Press</b> interactions are the only useful interactions for this context.
146 </li>
147 <li>
148 <b>Desktop</b> - The desktop or background. This works even when you are running a file manager such
149 as Nautilus.
150 </li>
151 <li>
152 <b>Titlebar</b> - The <b>Decorations</b> on the top of each window, containing the window's title.
153 </li>
154 <li>
155 <b>Handle</b> - The <b>Decorations</b> on the bottom of each window.
156 </li>
157 <li>
158 <b>TLCorner</b> - The top-left corner of the window's titlebar (the mouse cursor changes while over
159 this). Generally this is only used for resizing windows.
160 </li>
161 <li>
162 <b>TRCorner</b> - The top-right corner of the window's titlebar (the mouse cursor changes while over
163 this). Generally this is only used for resizing windows.
164 </li>
165 <li>
166 <b>BLCorner</b> - The bottom-left corner of the window's handle (the mouse cursor changes while over
167 this). Generally this is only used for resizing windows.
168 </li>
169 <li>
170 <b>BRCorner</b> - The bottom-right corner of the window's handle (the mouse cursor changes while over
171 this). Generally this is only used for resizing windows.
172 </li>
173 <li>
174 <b>Icon</b> - The window's icon in all window's titlebars.
175 </li>
176 <li>
177 <b>AllDesktops</b> - The All-Desktops (Omnipresent) button in all window's titlebars. This button is not
178 visible in the default settings. It is called the All-Desktop button because its default bindings toggle
179 omnipresence on the window.
180 </li>
181 <li>
182 <b>Shade</b> - The Shade button in all window's titlebars. This button is not visible in the default settings. It
183 is called the Shade button because its default bindings toggle shading on the window.
184 </li>
185 <li>
186 <b>Iconify</b> - The Iconify button in all window's titlebars. It is called the Iconify button because its default
187 bindings iconify the window.
188 </li>
189 <li>
190 <b>Maximize</b> - The Maximize button in all window's titlebars. It is called the Maximize button because its
191 default bindings maximize the window.
192 </li>
193 <li>
194 <b>Close</b> - The Close button in all window's titlebars. It is called the Close button because its
195 default bindings close the window.
196 </li>
197 <li>
198 <b>MoveResize</b> - Bindings under this context are available while moving or resizing a window.
199 </li>
200 </ul>
201
202 <p>
203 <b>BUTTON</b> is the mouse button and keyboard modifiers being bound. The button has the following syntax: <b>Modifier-Modifier-Button</b>. Any number of modifiers can be specified, following each one with a '-'. The available modifiers are listed <a href=docs.php?page=details.html#keybindings>here</a><!--:
204 </p>
205
206 <ul>
207 <li><b>S</b> - the Shift key</li>
208 <li><b>C</b> - the Control key</li>
209 <li><b>A</b> - the Alt key</li>
210 <li><b>W</b> - the Windows keys</li>
211 </ul>
212
213 <p>
214 Mod1 though Mod5 may also be used as modifiers. The xmodmap tool is used to
215 set these up. The A and W modifiers are merely aliases for Mod1 and Mod4.
216 -->
217 </p>
218
219 <p>
220 The Button can be the button's number, such as <b>1</b> or <b>3</b>, or it can be a name. The available names are <b>Left</b>, <b>Middle</b>, <b>Right</b>, <b>Up</b>, and <b>Down</b>.
221 </p>
222
223 <p>
224 <b>INTERACTION</b> specifies what you are doing with your mouse for the binding. It can be one of the following:
225 </p>
226 <ul>
227 <li><b>Press</b> - A mouse button is pressed.</li>
228 <li><b>Release</b> - A mouse button is released.</li>
229 <li><b>Click</b> - A mouse button is pressed and released.</li>
230 <li>
231 <b>DoubleClick</b> - A mouse button is pressed and released twice, quickly. The time delay in which
232 both clicks must occur is configurable.
233 </li>
234 <li><b>Drag</b> - A mouse button is pressed, and the mouse is moved while holding the button down.</li>
235 </ul>
236
237 <p>
238 <b>ACTIONS</b> is any number of <a href="#actions">actions</a> which will be executed when the mouse interaction occurs in the given context.
239 </p>
240
241 <h3>Examples</h3>
242
243 <blockquote>
244 &lt;context name="Close"&gt;<br />
245 &nbsp;&nbsp;&lt;mousebind button="Left" action="Press"&gt;<br />
246 &nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
247 &nbsp;&nbsp;&lt;/mousebind&gt;<br />
248 &lt;/context&gt;<br />
249 &lt;context name="Titlebar"&gt;<br />
250 &nbsp;&nbsp;&lt;mousebind button="Left" action="Press"&gt;<br />
251 &nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
252 &nbsp;&nbsp;&lt;/mousebind&gt;<br />
253 &nbsp;&nbsp;&lt;mousebind button="Left" action="Click"&gt;<br />
254 &nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
255 &nbsp;&nbsp;&lt;/mousebind&gt;<br />
256 &nbsp;&nbsp;&lt;mousebind button="Left" action="Drag"&gt;<br />
257 &nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
258 &nbsp;&nbsp;&lt;/mousebind&gt;<br />
259 &nbsp;&nbsp;&lt;mousebind button="Right" action="Press"&gt;<br />
260 &nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
261 &nbsp;&nbsp;&lt;/mousebind&gt;<br />
262 &lt;/context&gt;
263 </blockquote>
264
265 <h2><a name="menus"></a>Menus</h2>
266
267 <h3>Introduction</h3>
268
269 <p>
270 Menus are not read out of the <b>rc.xml</b> file, but rather out of files specified in the <b>rc.xml</b>. By default, the <b>menu.xml</b> file is read to build the menus.
271 </p>
272
273 <p>
274 Each menu is given an <b>ID</b> which is used in the bindings to specify which menu is being shown.
275 </p>
276
277 <p>
278 Openbox provides a few default menus:
279 </p>
280 <ul>
281 <li><b>client-menu</b> - A menu for controlling a window.</li>
282 <li><b>client-send-to-menu</b> - A menu for sending windows to desktops.</li>
283 <li><b>client-layer-menu</b> - A menu for selecting stacking layers for windows (Always on top, etc).</li>
284 <li><b>client-list-menu</b> - A menu for selecting a window or desktop to use.</li>
285 </ul>
286
287 <h3>Syntax</h3>
288
289 <p>
290 A menu file must be entirely enclosed within:
291 </p>
292
293 <blockquote>
294 &lt;openbox_menu&gt;<br />
295 ...<br />
296 &lt;/openbox_menu&gt;<br />
297 </blockquote>
298
299 <p>
300 Inside these, menus are specified as follows:
301 </p>
302
303 <blockquote>
304 &lt;menu id="ID" label="TITLE"&gt;<br />
305 <br />
306 &nbsp;&nbsp;&lt;item label="LABEL"&gt;<br />
307 &nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
308 &nbsp;&nbsp;&lt;/item&gt;<br />
309 <br />
310 &nbsp;&nbsp;&lt;separator /&gt;<br />
311 <br />
312 &nbsp;&nbsp;&lt;menu id="ID" /&gt;<br />
313 <br />
314 &nbsp;&nbsp;&lt;separator /&gt;<br />
315 <br />
316 &nbsp;&nbsp;&lt;menu id="ID" label="TITLE" /&gt;<br />
317 &nbsp;&nbsp;&nbsp;&nbsp;&lt;item label="LABEL"&gt;<br />
318 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
319 &nbsp;&nbsp;&nbsp;&nbsp;&lt;/item&gt;<br />
320 &nbsp;&nbsp;&lt;/menu&gt;<br />
321 <br />
322 &nbsp;&nbsp;&lt;separator /&gt;<br />
323 <br />
324 &nbsp;&nbsp;&lt;item label="LABEL"&gt;<br />
325 &nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
326 &nbsp;&nbsp;&lt;/item&gt;<br />
327 <br />
328 &lt;/menu&gt;<br />
329 </blockquote>
330
331 <p>
332 The syntax example above shows how to put entries into a menu (items) and two methods to add submenus to a menu. It also shows how to put separators into the menu to group items visibly.
333 </p>
334
335 <p>
336 Submenus can be simply referenced, and defined outside the parent menu (as the first submenu in the example would be). Submenus can also be nested directly into the containing menu, and still be referenced elsewhere.
337 </p>
338
339 <p>
340 <b>ID</b> is a unique identifier used to reference the menu. The value of the ID can be used in a <b>ShowMenu</b> <a href="#actions">action</a> to use the menu.
341 </p>
342
343 <p>
344 <b>TITLE</b> is the title displayed on the menu.
345 </p>
346
347 <p>
348 <b>LABEL</b> is the text displayed in the menu item
349 </p>
350
351 <p>
352 <b>ACTIONS</b> is any number of <a href="#actions">actions</a> which will be executed when the menu item is selected.
353 </p>
354
355 <h3>Pipe menus</h3>
356
357 <p>
358 Openbox allows for dynamic menus, built on-the-fly from scripts. These are referred to as "Pipe menus" since the script's output is piped back to Openbox and used for the menu.
359 </p>
360
361 <p>
362 A Pipe menu can be created by placing the following into a menu file:
363 </p>
364
365 <blockquote>
366 &lt;menu id="ID" label="TITLE" execute="COMMAND" /&gt;<br />
367 </blockquote>
368
369 <p>
370 The generated Pipe menu can be referenced just like any other menu.
371 </p>
372
373 <p>
374 <b>COMMAND</b> is a command which is executed. The output from this command is parsed and turned into the menu. The output from the script should be a menu, something like:
375 </p>
376
377 <blockquote>
378 &lt;openbox_pipe_menu&gt;<br />
379 &nbsp;&nbsp;&lt;item label="LABEL"&gt;<br />
380 &nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
381 &nbsp;&nbsp;&lt;/item&gt;<br />
382 &lt;/openbox_pipe_menu&gt;<br />
383 </blockquote>
384
385 <h2><a name="actions"></a>Actions</h2>
386
387 <h3>Introduction</h3>
388
389 <p>
390 Actions are used to specify the behavior of Openbox. Any place where
391 you can use actions, you can place more than one in a row to cause them all
392 to execute one after the other.
393 </p>
394
395 <h3>Syntax</h3>
396
397 <h4>Basic Syntax</h4>
398
399 <p>
400 Actions are specified using the following:
401 </p>
402
403 <blockquote>
404 &lt;action name="NAME"&gt;PARAMETERS&lt;/action&gt;
405 </blockquote
406
407 <p>
408 <b>NAME</b> is the name of the action, specifying which action to execute.
409 </p>
410
411 <p>
412 <b>PARAMETERS</b> is any possible inner tags to change how the action
413 will behave. For example, the <b>Execute</b> action has an inner execute
414 parameter specifying what will be run:
415 </p>
416
417 <blockquote>
418 &lt;action name="Execute"&gt;&lt;execute&gt;xterm&lt;/execute&gt;&lt;/action&gt;
419 </blockquote>
420
421 <p>
422 As another example, the <b>DesktopRight</b> action has an inner wrap parameter
423 which specifies if the action should wrap around to the beginning when trying
424 to go past the end:
425 </p>
426
427 <blockquote>
428 &lt;action name="DesktopRight"&gt;&lt;wrap&gt;no&lt;/wrap&gt;&lt;/action&gt;
429 </blockquote>
430
431 <h4>Syntax of Parameters</h4>
432
433 <p>
434 There are 3 types of parameters:
435 </p>
436
437 <ul>
438 <li>Strings</li>
439 <li>Numbers</li>
440 <li>Booleans (True/False)</li>
441 </ul>
442
443 <p>
444 The format of Strings and Numbers is pretty obvious. <b>foo</b> would be a valid
445 String, and <b>23</b> would be a valid Number.
446 </p>
447
448 <p>
449 Booleans can be specied with one of: <b>true</b>, <b>false</b>, <b>yes</b>,
450 <b>no</b>, <b>on</b>, or <b>off</b>.
451 </p>
452
453 <h4>Actions on Windows</h4>
454
455 <p>
456 Some actions will be performed globally, but some must be associated with a
457 window, and cause the action to be applied to that window. When binding
458 actions to mouse clicks, the window clicked on will have all the bound actions
459 performed on it as applicable. When binding actions to keys, the actions will
460 be associated with the currently focused window.
461 </p>
462
463 <h3>Available actions</h3>
464
465 <h4>Global Actions</h4>
466
467 <table class="docs">
468 <tr>
469 <th>Name</th>
470 <th>Parameters (default value in brackets)</th>
471 </tr>
472
473 <tr>
474 <td><b>Execute</b> - run an executable</td>
475 <td><b>command</b> () - specifies the executable to be run along with any
476 arguments to pass it. The tilde ('~') character will be expanded in this
477 string to your home directory, but no other shell expansions or
478 scripting syntax can be used in the command.
479 </td>
480 </tr>
481
482 <tr>
483 <td><b>DirectionalFocusNorth</b> - cycles focus to the window north of the
484 currently focused window.</td>
485 <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
486 </tr>
487
488 <tr>
489 <td><b>DirectionalFocusEast</b> - cycles focus to the window east of the
490 currently focused window.</td>
491 <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
492 </tr>
493
494 <tr>
495 <td><b>DirectionalFocusSouth</b> - cycles focus to the window south of the
496 currently focused window.</td>
497 <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
498 </tr>
499
500 <tr>
501 <td><b>DirectionalFocusWest</b> - cycles focus to the window west of the
502 currently focused window.</td>
503 <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
504 </tr>
505
506 <tr>
507 <td><b>DirectionalFocusNorthEast</b> - cycles focus to the window northeast
508 of the currently focused window.</td>
509 <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
510 </tr>
511
512 <tr>
513 <td><b>DirectionalFocusSouthEast</b> - cycles focus to the window southeast
514 of the currently focused window.</td>
515 <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
516 </tr>
517
518 <tr>
519 <td><b>DirectionalFocusSouthWest</b> - cycles focus to the window southwest
520 of the currently focused window.</td>
521 <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
522 </tr>
523
524 <tr>
525 <td><b>DirectionalFocusNorthWest</b> - cycles focus to the window northwest
526 of the currently focused window.</td>
527 <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
528 </tr>
529
530 <tr>
531 <td><b>NextWindow</b> - cycles focus to the next window.</td>
532 <td><b>linear</b> (no) - when true, windows are always cycled in the order
533 in which they appeared; otherwise, they are cycled in order of
534 recent use.
535 <b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
536 </tr>
537
538 <tr>
539 <td><b>PreviousWindow</b> - cycles focus to the previous window.</td>
540 <td><b>linear</b> (no) - when true, windows are always cycled in the order
541 in which they appeared; otherwise, they are cycled in order of
542 recent use.
543 <b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
544 </tr>
545
546 <tr>
547 <td><b>Desktop</b> - changes the currently visible desktop.</td>
548 <td><b>desktop</b> (1) - the number of the desktop (starting at 1) to make
549 visible.
550 <b>dialog</b> (no) - display the desktop dialog (with pager) while switching desktops. This will only
551 work in keyboard bindings; otherwise, it is disabled.</td>
552 </tr>
553 <tr>
554 <td><b>AddDesktopLast</b> - Adds a new desktop at the end of the list of current desktops.</td>
555 </tr>
556 <tr>
557 <td><b>RemoveDesktopLast</b> - Removes the last of the current desktops.</td>
558 </tr>
559 <tr>
560 <td><b>AddDesktopCurrent</b> - Adds a new desktop at the current location in the list of desktops.</td>
561 </tr>
562 <tr>
563 <td><b>RemoveDesktopCurrent</b> - Removes the current desktop.</td>
564 </tr>
565
566 <tr>
567 <td><b>DesktopNext</b> - makes the next desktop visible.</td>
568 <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
569 going past the last.<br />
570 <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
571 work in keyboard bindings; otherwise, it is disabled.</td>
572 </tr>
573
574 <tr>
575 <td><b>DesktopPrevious</b> - makes the previous desktop visible.</td>
576 <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
577 going past the first.<br />
578 <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
579 work in keyboard bindings; otherwise, it is disabled.</td>
580 </tr>
581
582 <tr>
583 <td><b>DesktopRight</b> - makes visible the desktop to the right of the
584 currrently visible desktop.</td>
585 <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
586 going past the last.<br />
587 <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
588 work in keyboard bindings; otherwise, it is disabled.</td>
589 </tr>
590
591 <tr>
592 <td><b>DesktopLeft</b> - makes visible the desktop to the left of the
593 currently visible desktop.</td>
594 <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
595 going past the first.<br />
596 <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
597 work in keyboard bindings; otherwise, it is disabled.</td>
598 </tr>
599
600 <tr>
601 <td><b>DesktopDown</b> - makes visible the desktop beneath the currently
602 visible desktop.</td>
603 <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
604 going past the last.<br />
605 <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
606 work in keyboard bindings; otherwise, it is disabled.</td>
607 </tr>
608
609 <tr>
610 <td><b>DesktopUp</b> - makes visible the desktop above the currently
611 visible desktop.</td>
612 <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
613 going past the first.<br />
614 <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
615 work in keyboard bindings; otherwise, it is disabled.</td>
616 </tr>
617
618 <tr>
619 <td><b>ToggleShowDesktop</b> - toggles between <a>ShowDesktop</a> and
620 <a>UnshowDesktop</a>.</td>
621 </tr>
622
623 <tr>
624 <td><b>DesktopLast</b> - makes the most recently visible desktop visible
625 again. Only one desktop is remembered, so using this twice will simply
626 flip between two desktops.</td>
627 </tr>
628
629 <tr>
630 <td><b>ShowMenu</b> - shows a menu by name</td>
631 <td><b>menu</b> () - the name of the menu to show. The names of menus are
632 specified in the <b>id</b> attribute of their <b>menu</b> tag.</td>
633 </tr>
634
635 <tr>
636 <td><b>Reconfigure</b> - reloads the config file, menu, and theme.</td>
637 </tr>
638
639 <tr>
640 <td><b>Restart</b> - restarts Openbox. This starts a new copy of Openbox,
641 and can be used to upgrade to a newly installed version.</td>
642 <td><b>command</b> () - when this is used, the executable specified within
643 will be run instead of Openbox. This can be used to switch to another
644 window manager if desired.</td>
645 </tr>
646
647 <tr>
648 <td><b>Exit</b> - exits Openbox.</td>
649 </tr>
650
651 </table>
652
653 <h4>Actions for Windows</h4>
654
655 <table class="docs">
656 <tr>
657 <th>Name</th>
658 <th>Parameters (default value in brackets)</th>
659 </tr>
660
661 <tr>
662 <td><b>Activate</b> - activates the window. This is the same process that
663 occurs when focus cycling to a window, or selecting it in the
664 client-list-menu.</td>
665 </tr>
666
667 <tr>
668 <td><b>Focus</b> - give focus to the window.</td>
669 </tr>
670
671 <tr>
672 <td><b>Unfocus</b> - remove focus from the window.</td>
673 </tr>
674
675 <tr>
676 <td><b>Iconify</b> - iconify the window. This causes the window to
677 not be shown on screen. The window can be found again with focus cycling
678 or with the client-list-menu.</td>
679 </tr>
680
681 <tr>
682 <td><b>RaiseLower</b> - raise the window to the forefront if it is obscured
683 behind anything; lower it to the back if it is already at the front.</td>
684 </tr>
685
686 <tr>
687 <td><b>Raise</b> - raise the window to the forefront.</td>
688 </tr>
689
690 <tr>
691 <td><b>Lower</b> - lower the window to the back.</td>
692 </tr>
693
694 <tr>
695 <td><b>Close</b> - request the window to close.</td>
696 </tr>
697
698 <tr>
699 <td><b>Kill</b> - forcibly disconnect the window's application from the
700 X server.</td>
701 </tr>
702
703 <tr>
704 <td><b>ShadeLower</b> - <a>Shade</a> the window; if the window is already
705 shaded, then <a>Lower</a> it.</td>
706 </tr>
707
708 <tr>
709 <td><b>UnshadeRaise</b> - <a>Unshade</a> the window; if the window is
710 already unshaded, then <a>Raise</a> it.</td>
711 </tr>
712
713 <tr>
714 <td><b>Shade</b> - shade the window. This hides everything of the window
715 except the titlebar. This concept has also been known as "rolling up" the
716 window into the titlebar.</td>
717 </tr>
718
719 <tr>
720 <td><b>Unshade</b> - unshade the window. This shows the entire window if it
721 was previously shaded.</td>
722 </tr>
723
724 <tr>
725 <td><b>ToggleShade</b> - toggles the shaded state of the window, firing the
726 <a>Shade</a> and <a>Unshade</a> actions appropriately.</td>
727 </tr>
728
729 <tr>
730 <td><b>ToggleOmnipresent</b> - toggles between moving the client to all
731 desktops (omnipresent) and to the currently visible desktop.</td>
732 </tr>
733
734 <tr>
735 <td><b>MoveRelative</b> - moves the window</td>
736 <td><b>x</b> (0) - the number of pixels to move the window horizontally. A positive
737 value moves to the right, a negative value moves to the left.<br/>
738 <b>y</b> (0) - the number of pixels to move the window vertically. A positive
739 value moves down, a negative value moves up.</td>
740 </tr>
741
742 <tr>
743 <td><b>ResizeRelative</b> - resizes the window</td>
744 <td><b>top</b> or <b>up</b> (0) - the amount to move the top edge of the window. A positive
745 value makes the window taller, a negative value makes it shorter.<br/>
746 <b>bottom</b> or <b>down</b> (0) - the amount to move the bottom edge of the window. A positive
747 value makes the window taller, a negative value makes it shorter.<br/>
748 <b>left</b> (0) - the amount to move the left edge of the window. A positive
749 value makes the window wider, a negative value makes it narrower.<br/>
750 <b>right</b> (0) - the amount to move the right edge of the window. A positive
751 value makes the window wider, a negative value makes it narrower.</td>
752 </tr>
753
754 <tr>
755 <td><b>MaximizeFull</b> - maximizes a window to fill the entire screen.</td>
756 </tr>
757
758 <tr>
759 <td><b>UnmaximizeFull</b> - restores a window to its original size.</td>
760 </tr>
761
762 <tr>
763 <td><b>ToggleMaximizeFull</b> - toggles between <a>MaximizeFull</a> and
764 <a>UnmaximizeFull</a>.</td>
765 </tr>
766
767 <tr>
768 <td><b>MaximizeHorz</b> - maximizes a window to fill the entire screen
769 horizontally, but not vertically.</td>
770 </tr>
771
772 <tr>
773 <td><b>UnmaximizeHorz</b> - restores a window to its original size.</td>
774 </tr>
775
776 <tr>
777 <td><b>ToggleMaximizeHorz</b> - toggles between <a>MaximizeHorz</a> and
778 <a>UnmaximizeHorz</a>.</td>
779 </tr>
780
781 <tr>
782 <td><b>MaximizeVert</b> - maximizes a window to fill the entire screen
783 vertically, but not horizontally.</td>
784 </tr>
785
786 <tr>
787 <td><b>UnmaximizeVert</b> - restores a window to its original size.</td>
788 </tr>
789
790 <tr>
791 <td><b>ToggleMaximizeVert</b> - toggles between <a>MaximizeHorz</a> and
792 <a>UnmaximizeVert</a>.</td>
793 </tr>
794
795 <tr>
796 <td><b>SendToDesktop</b> - sends the window to the specified desktop</td>
797 <td><b>desktop</b> (1) - the number of the desktop (starting at 1) to
798 send the window to.<br />
799 <b>follow</b> (yes) - whether to change to the desktop while moving
800 the window.</td>
801 </tr>
802
803 <tr>
804 <td><b>SendToDesktopNext</b> - sends the window to the next desktop.</td>
805 <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
806 going past the last.<br />
807 <b>follow</b> (yes) - whether to change to the desktop while moving
808 the window.</td>
809 </tr>
810
811 <tr>
812 <td><b>SendToDesktopPrevious</b> - sends the window to the previous
813 desktop.</td>
814 <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
815 going past the first.<br />
816 <b>follow</b> (yes) - whether to change to the desktop while moving
817 the window.</td>
818 </tr>
819
820 <tr>
821 <td><b>SendToDesktopRight</b> - sends the window to the desktop to the
822 right of the currently visible desktop.</td>
823 <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
824 going past the last.<br />
825 <b>follow</b> (yes) - whether to change to the desktop while moving
826 the window.</td>
827 </tr>
828
829 <tr>
830 <td><b>SendToDesktopLeft</b> - sends the window to the desktop to the
831 left of the currently visible desktop.</td>
832 <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
833 going past the first.<br />
834 <b>follow</b> (yes) - whether to change to the desktop while moving
835 the window.</td>
836 </tr>
837
838 <tr>
839 <td><b>SendToDesktopDown</b> - sends the window to the desktop beneath the
840 currently visible desktop.</td>
841 <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
842 going past the last.<br />
843 <b>follow</b> (yes) - whether to change to the desktop while moving
844 the window.</td>
845 </tr>
846
847 <tr>
848 <td><b>SendToDesktopUp</b> - sends the window to the desktop above the
849 currently visible desktops.</td>
850 <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
851 going past the first.<br />
852 <b>follow</b> (yes) - whether to change to the desktop while moving
853 the window.</td>
854 </tr>
855
856 <tr>
857 <td><b>ToggleDecorations</b> - toggles if the window is given decorations.
858 Decorations are the the titlebar and handle that are shown around most
859 windows.</td>
860 </tr>
861
862 <tr>
863 <td><b>Move</b> - begins an interactive move. The move will complete when the
864 mouse button is released, if it is bound to one. The Enter key will also
865 complete the move, and the Escape key will cancel it.</td>
866 </tr>
867
868 <tr>
869 <td><b>Resize</b> - begins an interactive resize. The resize will complete
870 when the mouse button is released, if it is bound to one. The Enter
871 key will also complete the resize, and the Escape key will cancel
872 it.</td>
873 </tr>
874
875 <tr>
876 <td><b>SendToTopLayer</b> - makes the window always-on-top.</td>
877 </tr>
878
879 <tr>
880 <td><b>SendToNormalLayer</b> - make the window not always-on-top or
881 always-on-bottom.</td>
882 </tr>
883
884 <tr>
885 <td><b>SendToBottomLayer</b> - makes the window always-on-bottom.</td>
886 </tr>
887
888 <tr>
889 <td><b>ToggleAlwaysOnTop</b> - toggles between <a>SendToTopLayer</a> and
890 <a>SendToNormalLayer</a>.</td>
891 </tr>
892
893 <tr>
894 <td><b>ToggleAlwaysOnBottom</b> - toggles between <a>SendToBottomLayer</a>
895 and <a>SendToNormalLayer</a>.</td>
896 </tr>
897
898 <tr>
899 <td><b>MoveToEdgeNorth</b> - moves the window to the nearest edge to
900 the north of it.</td>
901 </tr>
902
903 <tr>
904 <td><b>MoveToEdgeSouth</b> - moves the window to the nearest edge to
905 the south of it.</td>
906 </tr>
907
908 <tr>
909 <td><b>MoveToEdgeEast</b> - moves the window to the nearest edge to
910 the east of it.</td>
911 </tr>
912
913 <tr>
914 <td><b>MoveToEdgeWest</b> - moves the window to the nearest edge to
915 the west of it.</td>
916 </tr>
917
918 <tr>
919 <td><b>GrowToEdgeNorth</b> - resizes the window up to the nearest edge to
920 the north of it.</td>
921 </tr>
922
923 <tr>
924 <td><b>GrowToEdgeSouth</b> - resizes the window up to the nearest edge to
925 the south of it.</td>
926 </tr>
927
928 <tr>
929 <td><b>GrowToEdgeEast</b> - resizes the window up to the nearest edge to
930 the east of it.</td>
931 </tr>
932
933 <tr>
934 <td><b>GrowToEdgeWest</b> - resizes the window up to the nearest edge to
935 the west of it.</td>
936 </tr>
937
938 </table>
939
940 <h3>Examples</h3>
941
942 <blockquote>
943 &lt;action name="Raise"/&gt;<br />
944 &lt;action name="Focus"/&gt;
945 </blockquote>
946
947 <blockquote>
948 &lt;action name="ShowMenu"&gt;&lt;menu&gt;root-menu&lt;/menu&gt;&lt;/action&gt;
949 </blockquote>
950
951 <blockquote>
952 &lt;action name="MoveRelativeVert"&gt;&lt;delta&gt;5&lt;/delta&gt;&lt;/action&gt;
953 </blockquote>
954
955 <blockquote>
956 &lt;action name="SendToDesktopNext"&gt<br />
957 &nbsp;&nbsp;&lt;wrap&gt;no&lt;/wrap&gt;<br />
958 &nbsp;&nbsp;&lt;follow&gt;no&lt;/follow&gt;<br />
959 &lt;/action&gt;
960 </blockquote>
961
962 <a href="toc.html">Table of Contents</a>