File: details.html

package info (click to toggle)
openbox 3.6.1-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,224 kB
  • sloc: ansic: 36,891; sh: 4,484; xml: 1,358; makefile: 607; python: 594; sed: 16
file content (962 lines) | stat: -rw-r--r-- 30,495 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
<a href="toc.html">Table of Contents</a>

<h1>Details of the Config Files</h1>

<h2><a name="keybindings"></a>Key Bindings</h2>

<h3>Introduction</h3>

<p>
Key bindings are used to bind <a href="#actions">actions</a> to key
combinations. Whenever the combination is pressed, the actions bound to it will
be executed.
</p>

<p>
Key bindings are found in the <b>keyboard</b> section of the <b>rc.xml</b>
file. Any key bindings outside of the keyboard section will be ignored.
</p>

<h3>Syntax</h3>

<p>
Key bindings are specified using the following:
</p>

<blockquote>
&lt;keybind key="KEY COMBO"&gt;<br />
&nbsp;&nbsp;ACTIONS<br />
&lt;/keybind&gt;
</blockquote>

<p>
Any number of <a href="#actions">actions</a> may appear in a keybind.
</p>

<p>
<b>KEY COMBO</b> is the key combination to be bound. The key combo has the
following syntax: <b>Modifier-Modifier-Key</b>. Any number of modifiers can
be specified, following each one with a '-'. The available modifiers are:
</p>

<ul>
<li><b>S</b> - the Shift key</li>
<li><b>C</b> - the Control key</li>
<li><b>A</b> - the Alt key</li>
<li><b>W</b> - the Windows keys</li>
<li><b>M</b> - Mod3, not set by default i think</li>
</ul>

<p>
Mod1 though Mod5 may also be used as modifiers. The xmodmap tool is used to
set these up. The A and W modifiers are merely aliases for Mod1 and Mod4.
</p>

<p>
The Key is the name of the key, such as 'a' or 'F1' or '4'. You can find the
name of a key by running <b>xev</b> in a terminal, pressing the key, and
watching the output from xev in the terminal.
</p>

<p>
<b>ACTIONS</b> is any number of <a href="#actions">actions</a> which will be
executed when the key combination is pressed.
</p>

<h3>Chaining</h3>

<p>
Key-chains, as first seen in Emacs, are possible by simply nesting the key bindings. For example:
</p>

<blockquote>
&lt;keybind key="C-f"&gt;<br />
&nbsp;&nbsp;&lt;keybind key="x"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
&nbsp;&nbsp;&lt;/keybind&gt;<br />
&lt;/keybind&gt;
</blockquote>

<p>
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".
</p>

<p>
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.
</p>

<h2><a name="mousebindings"></a>Mouse Bindings</h2>

<h3>Introduction</h3>

<p>
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.
</p>

<p>
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.
</p>

<h3>Syntax</h3>

<p>
Mouse bindings are specified using the following:
</p>

<blockquote>
&lt;context name="CONTEXT"&gt;<br />
&nbsp;&nbsp;&lt;mousebind button="BUTTON" action="INTERACTION"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
&nbsp;&nbsp;&lt;/mousebind&gt;<br />
&lt;/context&gt;
</blockquote>

<p>
Any number of mousebinds may appear in a context, and any number of <a href="#actions">actions</a> may appear in a mousebind.
</p>

<p>
First, some definitions:
</p>
<ul>
  <li>
    <b>Decorations</b> - The decorations drawn by Openbox around your applications. This includes the
    <b>Titlebar</b> displayed on the top of each window, with the title, and some buttons in it. It also includes
    the <b>Handle</b> displayed on the bottom of each window.
  </li>
  <li>
    <b>Client area</b> - The applications themselves. This is the section of the window inside the
    <b>Decorations</b>.
  </li>
</ul>

<p>
<b>CONTEXT</b> is the context in which the mouse interaction is taking place. The possible contexts are:
</p>
<ul>
  <li>
    <b>Frame</b> - Includes the entirety of all windows. This includes on their decorations <i>and</i> in their
    <b>Client area</b>. <b>Note:</b> When a button is bound in this context, the clicks <b>will not</b> be
    passed through to the application. Use with care.
  </li>
  <li>
    <b>Client</b> - The <b>Client area</b> of all windows. <b>Notes:</b> When a button is bound in this
    context, the clicks <b>will</b> be passed through to the application. Because of how these are handled,
	<b>Press</b> interactions are the only useful interactions for this context.
  </li>
  <li>
    <b>Desktop</b> - The desktop or background. This works even when you are running a file manager such
    as Nautilus.
  </li>
  <li>
    <b>Titlebar</b> - The <b>Decorations</b> on the top of each window, containing the window's title.
  </li>
  <li>
    <b>Handle</b> - The <b>Decorations</b> on the bottom of each window.
  </li>
  <li>
    <b>TLCorner</b> - The top-left corner of the window's titlebar (the mouse cursor changes while over
    this). Generally this is only used for resizing windows.
  </li>
  <li>
    <b>TRCorner</b> - The top-right corner of the window's titlebar (the mouse cursor changes while over
    this). Generally this is only used for resizing windows.
  </li>
  <li>
    <b>BLCorner</b> - The bottom-left corner of the window's handle (the mouse cursor changes while over
    this). Generally this is only used for resizing windows.
  </li>
  <li>
    <b>BRCorner</b> - The bottom-right corner of the window's handle (the mouse cursor changes while over
    this). Generally this is only used for resizing windows.
  </li>
  <li>
    <b>Icon</b> - The window's icon in all window's titlebars.
  </li>
  <li>
    <b>AllDesktops</b> - The All-Desktops (Omnipresent) button in all window's titlebars. This button is not
    visible in the default settings. It is called the All-Desktop button because its default bindings toggle
    omnipresence on the window.
  </li>
  <li>
    <b>Shade</b> - The Shade button in all window's titlebars. This button is not visible in the default settings. It
    is called the Shade button because its default bindings toggle shading on the window.
  </li>
  <li>
    <b>Iconify</b> - The Iconify button in all window's titlebars. It is called the Iconify button because its default
    bindings iconify the window.
  </li>
  <li>
    <b>Maximize</b> - The Maximize button in all window's titlebars. It is called the Maximize button because its
    default bindings maximize the window.
  </li>
  <li>
    <b>Close</b> - The Close button in all window's titlebars. It is called the Close button because its
    default bindings close the window.
  </li>
  <li>
    <b>MoveResize</b> - Bindings under this context are available while moving or resizing a window.
  </li>
</ul>

<p>
<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><!--:
</p>

<ul>
<li><b>S</b> - the Shift key</li>
<li><b>C</b> - the Control key</li>
<li><b>A</b> - the Alt key</li>
<li><b>W</b> - the Windows keys</li>
</ul>

<p>
Mod1 though Mod5 may also be used as modifiers. The xmodmap tool is used to
set these up. The A and W modifiers are merely aliases for Mod1 and Mod4.
-->
</p>

<p>
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>.
</p>

<p>
<b>INTERACTION</b> specifies what you are doing with your mouse for the binding. It can be one of the following:
</p>
<ul>
  <li><b>Press</b> - A mouse button is pressed.</li>
  <li><b>Release</b> - A mouse button is released.</li>
  <li><b>Click</b> - A mouse button is pressed and released.</li>
  <li>
    <b>DoubleClick</b> - A mouse button is pressed and released twice, quickly. The time delay in which
    both clicks must occur is configurable.
  </li>
  <li><b>Drag</b> - A mouse button is pressed, and the mouse is moved while holding the button down.</li>
</ul>

<p>
<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.
</p>

<h3>Examples</h3>

<blockquote>
&lt;context name="Close"&gt;<br />
&nbsp;&nbsp;&lt;mousebind button="Left" action="Press"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
&nbsp;&nbsp;&lt;/mousebind&gt;<br />
&lt;/context&gt;<br />
&lt;context name="Titlebar"&gt;<br />
&nbsp;&nbsp;&lt;mousebind button="Left" action="Press"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
&nbsp;&nbsp;&lt;/mousebind&gt;<br />
&nbsp;&nbsp;&lt;mousebind button="Left" action="Click"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
&nbsp;&nbsp;&lt;/mousebind&gt;<br />
&nbsp;&nbsp;&lt;mousebind button="Left" action="Drag"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
&nbsp;&nbsp;&lt;/mousebind&gt;<br />
&nbsp;&nbsp;&lt;mousebind button="Right" action="Press"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
&nbsp;&nbsp;&lt;/mousebind&gt;<br />
&lt;/context&gt;
</blockquote>

<h2><a name="menus"></a>Menus</h2>

<h3>Introduction</h3>

<p>
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.
</p>

<p>
Each menu is given an <b>ID</b> which is used in the bindings to specify which menu is being shown.
</p>

<p>
Openbox provides a few default menus:
</p>
<ul>
  <li><b>client-menu</b> - A menu for controlling a window.</li>
  <li><b>client-send-to-menu</b> - A menu for sending windows to desktops.</li>
  <li><b>client-layer-menu</b> - A menu for selecting stacking layers for windows (Always on top, etc).</li>
  <li><b>client-list-menu</b> - A menu for selecting a window or desktop to use.</li>
</ul>

<h3>Syntax</h3>

<p>
A menu file must be entirely enclosed within:
</p>

<blockquote>
&lt;openbox_menu&gt;<br />
...<br />
&lt;/openbox_menu&gt;<br />
</blockquote>

<p>
Inside these, menus are specified as follows:
</p>

<blockquote>
&lt;menu id="ID" label="TITLE"&gt;<br />
<br />
&nbsp;&nbsp;&lt;item label="LABEL"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
&nbsp;&nbsp;&lt;/item&gt;<br />
<br />
&nbsp;&nbsp;&lt;separator /&gt;<br />
<br />
&nbsp;&nbsp;&lt;menu id="ID" /&gt;<br />
<br />
&nbsp;&nbsp;&lt;separator /&gt;<br />
<br />
&nbsp;&nbsp;&lt;menu id="ID" label="TITLE" /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;item label="LABEL"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/item&gt;<br />
&nbsp;&nbsp;&lt;/menu&gt;<br />
<br />
&nbsp;&nbsp;&lt;separator /&gt;<br />
<br />
&nbsp;&nbsp;&lt;item label="LABEL"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
&nbsp;&nbsp;&lt;/item&gt;<br />
<br />
&lt;/menu&gt;<br />
</blockquote>

<p>
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.
</p>

<p>
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.
</p>

<p>
<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.
</p>

<p>
<b>TITLE</b> is the title displayed on the menu.
</p>

<p>
<b>LABEL</b> is the text displayed in the menu item
</p>

<p>
<b>ACTIONS</b> is any number of <a href="#actions">actions</a> which will be executed when the menu item is selected.
</p>

<h3>Pipe menus</h3>

<p>
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.
</p>

<p>
A Pipe menu can be created by placing the following into a menu file:
</p>

<blockquote>
&lt;menu id="ID" label="TITLE" execute="COMMAND" /&gt;<br />
</blockquote>

<p>
The generated Pipe menu can be referenced just like any other menu.
</p>

<p>
<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:
</p>

<blockquote>
&lt;openbox_pipe_menu&gt;<br />
&nbsp;&nbsp;&lt;item label="LABEL"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;ACTIONS<br />
&nbsp;&nbsp;&lt;/item&gt;<br />
&lt;/openbox_pipe_menu&gt;<br />
</blockquote>

<h2><a name="actions"></a>Actions</h2>

<h3>Introduction</h3>

<p>
Actions are used to specify the behavior of Openbox. Any place where
you can use actions, you can place more than one in a row to cause them all
to execute one after the other.
</p>

<h3>Syntax</h3>

<h4>Basic Syntax</h4>

<p>
Actions are specified using the following:
</p>

<blockquote>
&lt;action name="NAME"&gt;PARAMETERS&lt;/action&gt;
</blockquote

<p>
<b>NAME</b> is the name of the action, specifying which action to execute.
</p>

<p>
<b>PARAMETERS</b> is any possible inner tags to change how the action
will behave. For example, the <b>Execute</b> action has an inner execute
parameter specifying what will be run:
</p>

<blockquote>
&lt;action name="Execute"&gt;&lt;execute&gt;xterm&lt;/execute&gt;&lt;/action&gt;
</blockquote>

<p>
As another example, the <b>DesktopRight</b> action has an inner wrap parameter
which specifies if the action should wrap around to the beginning when trying
to go past the end:
</p>

<blockquote>
&lt;action name="DesktopRight"&gt;&lt;wrap&gt;no&lt;/wrap&gt;&lt;/action&gt;
</blockquote>

<h4>Syntax of Parameters</h4>

<p>
There are 3 types of parameters:
</p>

<ul>
  <li>Strings</li>
  <li>Numbers</li>
  <li>Booleans (True/False)</li>
</ul>

<p>
The format of Strings and Numbers is pretty obvious. <b>foo</b> would be a valid
String, and <b>23</b> would be a valid Number.
</p>

<p>
Booleans can be specied with one of: <b>true</b>, <b>false</b>, <b>yes</b>,
<b>no</b>, <b>on</b>, or <b>off</b>.
</p>

<h4>Actions on Windows</h4>

<p>
Some actions will be performed globally, but some must be associated with a
window, and cause the action to be applied to that window. When binding
actions to mouse clicks, the window clicked on will have all the bound actions
performed on it as applicable. When binding actions to keys, the actions will
be associated with the currently focused window.
</p>

<h3>Available actions</h3>

<h4>Global Actions</h4>

<table class="docs">
<tr>
  <th>Name</th>
  <th>Parameters (default value in brackets)</th>
</tr>

<tr>
  <td><b>Execute</b> - run an executable</td>
  <td><b>command</b> () - specifies the executable to be run along with any
      arguments to pass it. The tilde ('~') character will be expanded in this
	  string to your home directory, but no other shell expansions or
	  scripting syntax can be used in the command.
  </td>
</tr>

<tr>
  <td><b>DirectionalFocusNorth</b> - cycles focus to the window north of the
	  currently focused window.</td>
  <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
</tr>

<tr>
  <td><b>DirectionalFocusEast</b> - cycles focus to the window east of the
	  currently focused window.</td>
  <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
</tr>

<tr>
  <td><b>DirectionalFocusSouth</b> - cycles focus to the window south of the
	  currently focused window.</td>
  <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
</tr>

<tr>
  <td><b>DirectionalFocusWest</b> - cycles focus to the window west of the
	  currently focused window.</td>
  <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
</tr>

<tr>
  <td><b>DirectionalFocusNorthEast</b> - cycles focus to the window northeast
	  of the currently focused window.</td>
  <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
</tr>

<tr>
  <td><b>DirectionalFocusSouthEast</b> - cycles focus to the window southeast
	  of the currently focused window.</td>
  <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
</tr>

<tr>
  <td><b>DirectionalFocusSouthWest</b> - cycles focus to the window southwest
	  of the currently focused window.</td>
  <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
</tr>

<tr>
  <td><b>DirectionalFocusNorthWest</b> - cycles focus to the window northwest
  	  of the currently focused window.</td>
  <td><b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
</tr>

<tr>
  <td><b>NextWindow</b> - cycles focus to the next window.</td>
  <td><b>linear</b> (no) - when true, windows are always cycled in the order
      in which they appeared; otherwise, they are cycled in order of
	  recent use.
        <b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
</tr>

<tr>
  <td><b>PreviousWindow</b> - cycles focus to the previous window.</td>
  <td><b>linear</b> (no) - when true, windows are always cycled in the order
      in which they appeared; otherwise, they are cycled in order of
	  recent use.
        <b>dialog</b> (yes) - display the focus cycling dialog while switching focus.</td>
</tr>

<tr>
  <td><b>Desktop</b> - changes the currently visible desktop.</td>
  <td><b>desktop</b> (1) - the number of the desktop (starting at 1) to make
          visible.
        <b>dialog</b> (no) - display the desktop dialog (with pager) while switching desktops. This will only
        work in keyboard bindings; otherwise, it is disabled.</td>
</tr>
<tr>
  <td><b>AddDesktopLast</b> - Adds a new desktop at the end of the list of current desktops.</td>
</tr>
<tr>
  <td><b>RemoveDesktopLast</b> - Removes the last of the current desktops.</td> 
</tr>
<tr>
  <td><b>AddDesktopCurrent</b> - Adds a new desktop at the current location in the list of desktops.</td>
</tr>
<tr>
  <td><b>RemoveDesktopCurrent</b> - Removes the current desktop.</td> 
</tr>

<tr>
  <td><b>DesktopNext</b> - makes the next desktop visible.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
	  going past the last.<br />
        <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
        work in keyboard bindings; otherwise, it is disabled.</td>
</tr>

<tr>
  <td><b>DesktopPrevious</b> - makes the previous desktop visible.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
	  going past the first.<br />
        <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
        work in keyboard bindings; otherwise, it is disabled.</td>
</tr>

<tr>
  <td><b>DesktopRight</b> - makes visible the desktop to the right of the
	  currrently visible desktop.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
	  going past the last.<br />
        <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
        work in keyboard bindings; otherwise, it is disabled.</td>
</tr>

<tr>
  <td><b>DesktopLeft</b> - makes visible the desktop to the left of the
	  currently visible desktop.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
	  going past the first.<br />
        <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
        work in keyboard bindings; otherwise, it is disabled.</td>
</tr>

<tr>
  <td><b>DesktopDown</b> - makes visible the desktop beneath the currently
      visible desktop.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
	  going past the last.<br />
        <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
        work in keyboard bindings; otherwise, it is disabled.</td>
</tr>

<tr>
  <td><b>DesktopUp</b> - makes visible the desktop above the currently
      visible desktop.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
	  going past the first.<br />
        <b>dialog</b> (yes) - display the desktop dialog (with pager) while switching desktops. This will only
        work in keyboard bindings; otherwise, it is disabled.</td>
</tr>

<tr>
  <td><b>ToggleShowDesktop</b> - toggles between <a>ShowDesktop</a> and
      <a>UnshowDesktop</a>.</td>
</tr>

<tr>
  <td><b>DesktopLast</b> - makes the most recently visible desktop visible
      again. Only one desktop is remembered, so using this twice will simply
	  flip between two desktops.</td>
</tr>

<tr>
  <td><b>ShowMenu</b> - shows a menu by name</td>
  <td><b>menu</b> () - the name of the menu to show. The names of menus are
      specified in the <b>id</b> attribute of their <b>menu</b> tag.</td>
</tr>

<tr>
  <td><b>Reconfigure</b> - reloads the config file, menu, and theme.</td>
</tr>

<tr>
  <td><b>Restart</b> - restarts Openbox. This starts a new copy of Openbox,
      and can be used to upgrade to a newly installed version.</td>
  <td><b>command</b> () - when this is used, the executable specified within
      will be run instead of Openbox. This can be used to switch to another
	  window manager if desired.</td>
</tr>

<tr>
  <td><b>Exit</b> - exits Openbox.</td>
</tr>

</table>

<h4>Actions for Windows</h4>

<table class="docs">
<tr>
  <th>Name</th>
  <th>Parameters (default value in brackets)</th>
</tr>

<tr>
  <td><b>Activate</b> - activates the window. This is the same process that
      occurs when focus cycling to a window, or selecting it in the
	  client-list-menu.</td>
</tr>

<tr>
  <td><b>Focus</b> - give focus to the window.</td>
</tr>

<tr>
  <td><b>Unfocus</b> - remove focus from the window.</td>
</tr>

<tr>
  <td><b>Iconify</b> - iconify the window. This causes the window to
      not be shown on screen. The window can be found again with focus cycling
	  or with the client-list-menu.</td>
</tr>

<tr>
  <td><b>RaiseLower</b> - raise the window to the forefront if it is obscured
      behind anything; lower it to the back if it is already at the front.</td>
</tr>

<tr>
  <td><b>Raise</b> - raise the window to the forefront.</td>
</tr>

<tr>
  <td><b>Lower</b> - lower the window to the back.</td>
</tr>

<tr>
  <td><b>Close</b> - request the window to close.</td>
</tr>

<tr>
  <td><b>Kill</b> - forcibly disconnect the window's application from the
      X server.</td>
</tr>

<tr>
  <td><b>ShadeLower</b> - <a>Shade</a> the window; if the window is already
      shaded, then <a>Lower</a> it.</td>
</tr>

<tr>
  <td><b>UnshadeRaise</b> - <a>Unshade</a> the window; if the window is
      already unshaded, then <a>Raise</a> it.</td>
</tr>

<tr>
  <td><b>Shade</b> - shade the window. This hides everything of the window
      except the titlebar. This concept has also been known as "rolling up" the
	  window into the titlebar.</td>
</tr>

<tr>
  <td><b>Unshade</b> - unshade the window. This shows the entire window if it
      was previously shaded.</td>
</tr>

<tr>
  <td><b>ToggleShade</b> - toggles the shaded state of the window, firing the
      <a>Shade</a> and <a>Unshade</a> actions appropriately.</td>
</tr>

<tr>
  <td><b>ToggleOmnipresent</b> - toggles between moving the client to all
      desktops (omnipresent) and to the currently visible desktop.</td>
</tr>

<tr>
  <td><b>MoveRelative</b> - moves the window</td>
  <td><b>x</b> (0) - the number of pixels to move the window horizontally. A positive
      value moves to the right, a negative value moves to the left.<br/>
  <b>y</b> (0) - the number of pixels to move the window vertically. A positive
      value moves down, a negative value moves up.</td>
</tr>

<tr>
  <td><b>ResizeRelative</b> - resizes the window</td>
  <td><b>top</b> or <b>up</b> (0) - the amount to move the top edge of the window. A positive
	  value makes the window taller, a negative value makes it shorter.<br/>
  <b>bottom</b> or <b>down</b> (0) - the amount to move the bottom edge of the window. A positive
	  value makes the window taller, a negative value makes it shorter.<br/>
  <b>left</b> (0) - the amount to move the left edge of the window. A positive
	  value makes the window wider, a negative value makes it narrower.<br/>
  <b>right</b> (0) - the amount to move the right edge of the window. A positive
	  value makes the window wider, a negative value makes it narrower.</td>
</tr>

<tr>
  <td><b>MaximizeFull</b> - maximizes a window to fill the entire screen.</td>
</tr>

<tr>
  <td><b>UnmaximizeFull</b> - restores a window to its original size.</td>
</tr>

<tr>
  <td><b>ToggleMaximizeFull</b> - toggles between <a>MaximizeFull</a> and
	  <a>UnmaximizeFull</a>.</td>
</tr>

<tr>
  <td><b>MaximizeHorz</b> - maximizes a window to fill the entire screen
	  horizontally, but not vertically.</td>
</tr>

<tr>
  <td><b>UnmaximizeHorz</b> - restores a window to its original size.</td>
</tr>

<tr>
  <td><b>ToggleMaximizeHorz</b> - toggles between <a>MaximizeHorz</a> and
	  <a>UnmaximizeHorz</a>.</td>
</tr>

<tr>
  <td><b>MaximizeVert</b> - maximizes a window to fill the entire screen
      vertically, but not horizontally.</td>
</tr>

<tr>
  <td><b>UnmaximizeVert</b> - restores a window to its original size.</td>
</tr>

<tr>
  <td><b>ToggleMaximizeVert</b> - toggles between <a>MaximizeHorz</a> and
      <a>UnmaximizeVert</a>.</td>
</tr>

<tr>
  <td><b>SendToDesktop</b> - sends the window to the specified desktop</td>
  <td><b>desktop</b> (1) - the number of the desktop (starting at 1) to
      send the window to.<br />
	  <b>follow</b> (yes) - whether to change to the desktop while moving
	  the window.</td>
</tr>

<tr>
  <td><b>SendToDesktopNext</b> - sends the window to the next desktop.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
	  going past the last.<br />
	  <b>follow</b> (yes) - whether to change to the desktop while moving
	  the window.</td>
</tr>

<tr>
  <td><b>SendToDesktopPrevious</b> - sends the window to the previous
	  desktop.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
	  going past the first.<br />
	  <b>follow</b> (yes) - whether to change to the desktop while moving
	  the window.</td>
</tr>

<tr>
  <td><b>SendToDesktopRight</b> - sends the window to the desktop to the
	  right of the currently visible desktop.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
	  going past the last.<br />
	  <b>follow</b> (yes) - whether to change to the desktop while moving
	  the window.</td>
</tr>

<tr>
  <td><b>SendToDesktopLeft</b> - sends the window to the desktop to the
	  left of the currently visible desktop.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
	  going past the first.<br />
	  <b>follow</b> (yes) - whether to change to the desktop while moving
	  the window.</td>
</tr>

<tr>
  <td><b>SendToDesktopDown</b> - sends the window to the desktop beneath the
      currently visible desktop.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the first desktop when
      going past the last.<br />
	  <b>follow</b> (yes) - whether to change to the desktop while moving
	  the window.</td>
</tr>

<tr>
  <td><b>SendToDesktopUp</b> - sends the window to the desktop above the
      currently visible desktops.</td>
  <td><b>wrap</b> (yes) - whether to wrap around to the last desktop when
	  going past the first.<br />
	  <b>follow</b> (yes) - whether to change to the desktop while moving
	  the window.</td>
</tr>

<tr>
  <td><b>ToggleDecorations</b> - toggles if the window is given decorations.
      Decorations are the the titlebar and handle that are shown around most
	  windows.</td>
</tr>

<tr>
  <td><b>Move</b> - begins an interactive move. The move will complete when the
      mouse button is released, if it is bound to one. The Enter key will also
	  complete the move, and the Escape key will cancel it.</td>
</tr>

<tr>
  <td><b>Resize</b> - begins an interactive resize. The resize will complete
      when the mouse button is released, if it is bound to one. The Enter
	  key will also complete the resize, and the Escape key will cancel
	  it.</td>
</tr>

<tr>
  <td><b>SendToTopLayer</b> - makes the window always-on-top.</td>
</tr>

<tr>
  <td><b>SendToNormalLayer</b> - make the window not always-on-top or
      always-on-bottom.</td>
</tr>

<tr>
  <td><b>SendToBottomLayer</b> - makes the window always-on-bottom.</td>
</tr>

<tr>
  <td><b>ToggleAlwaysOnTop</b> - toggles between <a>SendToTopLayer</a> and
      <a>SendToNormalLayer</a>.</td>
</tr>

<tr>
  <td><b>ToggleAlwaysOnBottom</b> - toggles between <a>SendToBottomLayer</a>
      and <a>SendToNormalLayer</a>.</td>
</tr>

<tr>
  <td><b>MoveToEdgeNorth</b> - moves the window to the nearest edge to
	  the north of it.</td>
</tr>

<tr>
  <td><b>MoveToEdgeSouth</b> - moves the window to the nearest edge to
	  the south of it.</td>
</tr>

<tr>
  <td><b>MoveToEdgeEast</b> - moves the window to the nearest edge to
	  the east of it.</td>
</tr>

<tr>
  <td><b>MoveToEdgeWest</b> - moves the window to the nearest edge to
      the west of it.</td>
</tr>

<tr>
  <td><b>GrowToEdgeNorth</b> - resizes the window up to the nearest edge to
	  the north of it.</td>
</tr>

<tr>
  <td><b>GrowToEdgeSouth</b> - resizes the window up to the nearest edge to
	  the south of it.</td>
</tr>

<tr>
  <td><b>GrowToEdgeEast</b> - resizes the window up to the nearest edge to
	  the east of it.</td>
</tr>

<tr>
  <td><b>GrowToEdgeWest</b> - resizes the window up to the nearest edge to
      the west of it.</td>
</tr>

</table>

<h3>Examples</h3>

<blockquote>
&lt;action name="Raise"/&gt;<br />
&lt;action name="Focus"/&gt;
</blockquote>

<blockquote>
&lt;action name="ShowMenu"&gt;&lt;menu&gt;root-menu&lt;/menu&gt;&lt;/action&gt;
</blockquote>

<blockquote>
&lt;action name="MoveRelativeVert"&gt;&lt;delta&gt;5&lt;/delta&gt;&lt;/action&gt;
</blockquote>

<blockquote>
&lt;action name="SendToDesktopNext"&gt<br />
&nbsp;&nbsp;&lt;wrap&gt;no&lt;/wrap&gt;<br />
&nbsp;&nbsp;&lt;follow&gt;no&lt;/follow&gt;<br />
&lt;/action&gt;
</blockquote>

<a href="toc.html">Table of Contents</a>