summaryrefslogtreecommitdiffstats
path: root/manual/matchbox-manual.sgml
blob: 87d54fe7544e65054a99e726b7063ca1c0b31a20 (plain)
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
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
<!DOCTYPE Article PUBLIC "-//GNOME//DTD DocBook PNG Variant V1.1//EN"[
<!ENTITY version "1.0.53">
	<!--  Template Version: 1.0.1  (do not remove this line) -->
]>

<!-- =============Document Header ============================= -->

<article id="index"> <!-- please do not change the id -->

  <artheader>
    <title>Matchbox Project Manual</title>
    <copyright>
      <year>2004</year>
      <holder>Matthew Allum, Openedhand LTD</holder>
    </copyright>

    <legalnotice>
      <para>
        Permission is granted to copy, distribute and/or modify this
        document under the terms of the <citetitle>GNU Free
        Documentation License</citetitle>, Version 1.1 or any later
        version published by the Free Software Foundation with no
        Invariant Sections, no Front-Cover Texts, and no Back-Cover
        Texts. You may obtain a copy of the <citetitle>GNU Free
        Documentation License</citetitle> from the Free Software
        Foundation by visiting <ulink type="http"
        url="http://www.fsf.org">their Web site</ulink> or by writing
        to: Free Software Foundation, Inc., 59 Temple Place - Suite
        330, Boston, MA 02111-1307, USA.
      </para>
      <para>
        Many of the names used by companies to distinguish their
        products and services are claimed as trademarks. Where those
        names appear in any GNOME documentation, and those trademarks
        are made aware to the members of the GNOME Documentation
        Project, the names have been printed in caps or initial caps.
      </para>
    </legalnotice>

    <releaseinfo>
       This is version 0.9 of The Matchbox manual.
    </releaseinfo>

  </artheader>

 <!-- ============= Document Body ============================= -->

 <!-- ============= Introduction ============================== -->
  <section id="intro">
    <title>Introduction</title>

    <para>

    Matchbox is a suite of tools for the user management of X11
    applications. Typically designed to be used on computers with little
    screen real estate, limited input devices and low cpu/storage
    resources. PDA's, for example, fit well into this category.

    </para>
    <para>

    This manual outlines the usage of the projects core applications -
    A window manager, panel and desktop.

    </para>
    <para>
Where

    </para>


 </section>
 <section id="wm">
   <title>Matchbox Window Manager</title>
   <para>
 
   The Matchbox window manager manages windows in a restrictive
   maximised PDA like nature, with applications are arranged in a
   stack with just one such application visible at any
   time. 

   Application dialog windows are kept on the stack with there
   parents.

   </para>

   <para>

   The user is able to 'page' through the application stack via
   various means including window decoration controls, keyboard
   shortcuts and external messaging mechansisms.

   </para>

   <para>

   The window manager also supports other 'non-applcation' window types 
   such as panels, desktops and input method windows.

   </para>

   <para>

   The window manager frame decorations and controls are fully themeable. 
   Further flexibility is achieved through command line options if needed.

   </para>

   <para>

   Matchbox window manager is included in the
   <filename>matchbox-window-manager</filename> package, which is part of the
   Matchbox project. This document describes version 0.9 of 
   Matchbox window manager.

   </para>

   <!-- ============= WM Usage ============================== -->

   <section id="wmusage">
   <title>Usage And Configuration</title>


   <para>

    <screen>
    matchbox-window-manager [options]
    </screen>

   </para>

   <para>

   Matchbox supports optional configuration via command line options
   and/or X Resource settings.

   </para>
   <para>

   X Resources are usually set options per user in ~/.Xdefaults and globally in
   (install prefix)/share/matchbox/defaults. 

   </para>
   <para>

   Command line options take precedence over both of these.

   </para>
   <para>
   Options, are;

   <variablelist>

	<varlistentry>
          <term><userinput>-display &lt;string&gt;</userinput></term>
	  <listitem>
            <para>

            Specify the X Server for matchbox to connect to. Defaults to
            <envar>DISPLAY</envar> environmental variable. 
	    
	    </para>
	    
	  </listitem>
        </varlistentry>


	<varlistentry>
          <term><userinput>-theme &lt;string&gt;</userinput></term>
	  <listitem>
            <para>
       
            Specify the theme name to use, describing the window
            managers' look and feel'. The directory's;

	    </para>
	    <para>

            <screen>

	    ~/.theme/[theme name]/matchbox
            $PREFIX/share/themes/[theme name]/matchbox

            </screen>
            </para>
            <para>
        
            will be checked for a valid theme.xml file. If the file is 
            not found or invalid, matchbox will revert to its default theme.

            </para>
       
            <tip>
              <title>Note</title>
              <para>
                Themeing will not be available if matchbox is compiled 
		with the 
                <emphasis>--enable-standalone</emphasis> option. 
             </para>
            </tip>

	    <para>	    

	    The corresponding X Resource key is <emphasis>matchbox.theme</emphasis> . 
	    </para>
	  </listitem>
        </varlistentry>

	<varlistentry>
          <term><userinput>-use_titlebar &lt;yes|no&gt;</userinput></term>
	  <listitem>
            <para>
	          
             Specify whether if main windows have titlebars. Defaults to yes.

            </para>
	    <tip>
              <title>Tip</title>
              <para>

              This option is useful if you are running Matchbox on
              platforms where you intend to run just one application, or you
              want all applications to run 'full screen' - a set-top box style
              enviroment for example. Dialog windows will however be
              decorated.

             </para>
            </tip>
	    <para>	    

	    The corresponding X Resource key is <emphasis>matchbox.titlebar</emphasis> . 
	    </para>
	  </listitem>
        </varlistentry>

	<varlistentry>
          <term><userinput>-use_lowlight &lt;yes|no&gt;</userinput></term>
	  <listitem>
            <para>
	          

            Enables an effect to make modal dialog windows 'super' modal. All
            other windows are lowlighted out. This option is <emphasis>EXPERIMENTAL</emphasis>

           </para>

           <para>

           Dialog windows must specify they are modal for this option to work. 

           </para>
           <para>

           The lowlighted color is specified by the current theme.xml file. 

          </para>

	  <para>

	    The corresponding X Resource key is
	    <emphasis>matchbox.lowlight</emphasis> .  

         </para>
      </listitem> 
     </varlistentry>

	<varlistentry>
          <term><userinput>-use_dialog_mode &lt;free|const|const-horiz&gt;</userinput></term>
	  <listitem>
            <para>

            Decides the strategy the window manager uses to position and resize
            dialogs. By default, dialogs will be restrained to fit on the display not covering any panels or input/toolbar windows.
	    </para>

	    <para>
	    
	    <emphasis>free</emphasis>, will remove any window manager  intervention.
	    </para>

	    <para>

	    <emphasis>static</emphasis>, the user cannot change dialog position or stacking order.

	    </para>
	    <para>	    

            <emphasis>const-horiz</emphasis> is like the 'const' option but
            will make all dialogs the full screen width and allow movement 
            only in the vertical.

             </para>
	    <para>	    

	    The corresponding X Resource key is <emphasis>matchbox.dialog</emphasis> . 
	    </para>
	  </listitem>
        </varlistentry>

	<varlistentry>
          <term><userinput>-use_desktop_mode &lt;decorated|plain&gt;</userinput></term>
	  <listitem>
            <para>

           Decides if desktop' windows ( such as Nautilus or matchbox-desktop )           are decorated. Defaults to plain. 

	    </para>
	  <para>

	    The corresponding X Resource key is
	    <emphasis>matchbox.desktop</emphasis> .  

         </para>
      </listitem> 
     </varlistentry>

	<varlistentry>
          <term><userinput>-use_cursor &lt;yes|now&gt;</userinput></term>
	  <listitem>
            <para>

           If enabled, an attempt is made to hide the mouse cursor
           completely. This can be overridden by applications such as
           xterms.

           </para>

          <para>

          <tip>
                <title>Warning</title>
                <para>
	        This option will likely be depreciated in future
	        releases, as it does not provide a 100% solution. 
        	</para>
	        <para>
                 An improved way of providing this effect is to use libXcursor with             a 'blank' ( eg all cursors are fully alpha ) theme.
 	        </para> 
         </tip>
	    
	    </para>
	    <para>

	    The corresponding X Resource key is
	    <emphasis>matchbox.cursor</emphasis> .  

         </para>
      </listitem> 
     </varlistentry>

	<varlistentry>
          <term><userinput>-force-dialogs &lt;comma seperated name list&gt;</userinput></term>
	  <listitem>
            <para>
	    Specify a comma seperated list of window titles, whose windows when matched are <emphasis>forced</emphasis> to be treated as dialogs rather than application windows. 
            </para>
	    <para>
	    The corresponding X Resource key is
	    <emphasis>matchbox.forcedialogs</emphasis> .  

	    </para>
      </listitem> 
     </varlistentry>


	<varlistentry>
          <term><userinput>-help</userinput></term>
	  <listitem>
            <para>
	    Display a brief help message and build details. 
            </para>
      </listitem> 
     </varlistentry>



   </variablelist>


</para>

   </section>
   <section id="wmthemes"><title>Themes</title>
   <para>

    The window manager is fully themeable. Themeing is configured by
    simple XML files found in;

    </para>
    <para>

    <screen>
    $PREFIX/share/themes/[selected theme name]/matchbox 
    </screen>

    </para>
    <para>

    See the 'blondie' theme.xml file for details on the format or read the <ulink url="themes/index.html">Matchbox Themeing-Howto</ulink>.
    </para>

    <para>

    As well as being selected on startup, themes can be changed on the fly. 
    There are various ways to do this. 

    </para>
    <para>

    If you compiled Matchbox without libxsettings support, use
    matchbox-remote to change the current theme.

    </para>

    <para>
      <userinput>matchbox-remote -t &lt;theme name&gt; </userinput>
    </para>

    <para>

    Alternatively if you compiled with XSettings support, you will be
    able to use the Gnome2 / GPE / KDE3 desktop configuration tools to
    change the theme. The XSettings key used is Net/ThemeName

    </para>

   <para>

   The Window Manager distribution tarball contains three themes: blondie
   - a bells and whistles PNG based theme for PDA's, bluebox - a lighter
   XPM image based theme and borillo - a theme for larger displays.

  </para>

  </section>

  <section id="wmkeys"><title>Shortcut keys</title>
  <para>

  The window manager has redefinable shortcut keys which can be used
  to perform window operations or launch applications. The location of
  the config file is PREFIX/share/matchbox/kbdconfig , this can be
  overridden by the user having a ~/.matchbox/kdbconfig file.

  </para>
  <para>

   The config file is made up of one definition per line each in the format

   </para>
   <para>

   <screen>
   &lt;keys definition&gt;=&lt;action&gt;
   </screen>

   </para>

   <para>
   
   'Keys Definition' consists of an optional series of modifier keys
   in angle brackets followed by the actual key symbol. Action can be
   one of next, prev, close, taskmenu, hidetitle, fullscreen and
   desktop for various window operations.

   </para>
   <para>

   The action can be prefixed with special characters to launch applications.
   Prefixes are;

   <ItemizedList>
	<ListItem>
	<para>
          !   Launch application with just a standard fork-exec.
	</para>
	</ListItem>
	<ListItem><para>!!  Launch application with 'startup-notification' - provides feedback of application startup cycle.</para>
	<para>Application must support startup notification ( eg use gtk 2.2 toolkit )</para></listitem>
          
	  <ListItem><para>!$ Launch or raise preexisting application, keeping just a 
	  single instance running. [1] </para></listitem>
   </ItemizedList>

   </para>
   <para>

   For example

   </para>
   <para>

   <screen>
   &lt;ctrl&gt;&lt;alt&gt;p=prev
   </screen>

   </para>
   <para>


   Binds the combination of alt, ctrl and p to show the previous window.

   </para>
   <para>

   <screen>
   &lt;ctrl&gt;x=!xterm
   </screen>

   </para>
   <para>

   Binds the combination of ctrl x to launch an xterm.
  </para>

  <para>
  See the installed kbdconfig file for more examples. 
  </para>

  <para>

  The matchbox window manager can be configured to use gconf to store
  keyboard shortcuts - the kbdconfig file will then be ignored. The advantage
  of using gconf is the shortcuts can be changed on the fly without
  requiring a restart of the window manager.

  </para>

  <para>

  The 'action' syntax is the same as above. You should use gconftool or
  gconf-editor to set documented keys under /apps/matchbox.

  </para>

 </section>
 <section id="wmapps">
 <title>Included Utilities</title>
 <para>
 
 <section><title>matchbox-session</title>
 <para>
 A very simple shell script to start Matchbox window manager, desktop and panel ( if available ).
</para>
<para>
The file will check for in order and exec the following files if they exist. 
</para>
<para>

<programlisting>
$HOME/.matchbox/session
/etc/matchbox/session
</programlisting>
</para>
<para>

If they don't exist sensible defaults will be run. The reasoning behind
this file is that distributions containing Matchbox can easily tailor
startup options ( by supplying a /etc/matchbox/session ) for their
platform.

</para>
</section>
<section><title>matchbox-remote</title>
<para>
A command line tool to externally control Matchbox. 
</para>
<para>
<table>
<title>matchbox-remote command line options</title>
<tgroup cols="3" align="left" colsep="10" rowsep="10">
<thead>
<row valign='top'>
<entry>Option</entry>
<entry>Value Type</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row valign='top'>
<entry>-theme</entry>
<entry>Theme name</entry>
<entry>switch Matchbox theme</entry>
</row>
<row valign='top'>
<entry>-r</entry>
<entry>na.</entry>
<entry>Print current Matchbox theme to stdout </entry>
</row>
<row valign='top'>
<entry>-exit</entry>
<entry>na.</entry>
<entry>Request Matchbox window manager to exit</entry>
</row>
<row valign='top'>
<entry>-next</entry>
<entry>na.</entry>
<entry>Request Matchbox window manager to 'page' to next window</entry>
</row>
<row valign='top'>
<entry>-prev</entry>
<entry>na.</entry>
<entry>Request Matchbox window manager to 'page' to previous window</entry>
</row>
<row valign='top'>
<entry>-desktop</entry>
<entry>na.</entry>
<entry>Request Matchbox window manager to toggle desktop visibility</entry>
</row>
<row valign='top'>
<entry>-mbmenu</entry>
<entry>na.</entry>
<entry>activate mb-applet-menu-launcher ( if running )</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</section>
</section>
</section>

<section id="panel"><title>Matchbox Panel</title>
  <para>

  The Matchbox panel is a small, always visible, area of the display which
  holds application launchers, and simple user information type tools,
  such as a battery power level monitor or clock. 

  </para>

  <para>
  
  The panel can supports different orientations and sizes. It conforms to 
  the <ulink url="http://www.freedesktop.org/Standards/systemtray-spec">System Tray Protocol specification</ulink>. 

  </para>

  <para>

  The panel optionally features simple session management to remember
  what apps are 'parented', and a popup menu to add / remove apps. The
  popup menu is enabled by clicking and holding on a free area of the
  panel.

  </para>

   <para>

   The Matchbox panel is included in the
   <filename>matchbox-panel</filename> package, which is part of the
   Matchbox project. A number of simple panel 'applets' are also included. 
   This document describes version 0.8 of the matchbox panel.

   </para>


  <section><title>Usage And Configuration</title>
    <para>

    <screen>
    <userinput>matchbox-panel [options]</userinput>
    </screen>
    <table>
    <title>Matchbox Panel command line options</title>
    <tgroup cols="3" align="left" colsep="10" rowsep="10">
    <thead>
    <row>
      <entry>Option</entry>
      <entry>Value Type</entry>
      <entry>Description</entry>
    </row>
    </thead>
    <tbody>
    <row valign='top'>
      <entry>-display, -d</entry>
      <entry>string - X11 Display name</entry>
      <entry>    Specify the X Server for the panel to connect to. Defaults to
    <envar>DISPLAY</envar> environmental variable. 
      </entry>
    </row>
    <row valign='top'>
      <entry>--id</entry>     
      <entry>integer</entry>
      <entry>Specify a unique id for the panel. This is needed if you wish to run multiple panels.</entry> 
    </row>
    <row valign='top'>
      <entry>--orientation</entry>        
      <entry>north|east|south|west</entry>
      <entry>Specify what edge on the display the panel should be located</entry>
    </row>

    <row valign='top'>
      <entry>--margins</entry>        
      <entry>&lt;left/right&gt;[, &lt;top/bottom&gt;] panel appley offsets in pixels</entry>
      <entry>Specify panel margin around applets. Defaults to 2,2</entry>
    </row>

    <row valign='top'>
      <entry>--padding</entry>        
      <entry>&lt;int&gt;  </entry>
      <entry>Specify spacing between panel applets in pixels</entry>
    </row>
    
    <row valign='top'>
    <entry>--titlebar</entry>        
    <entry></entry>
    <entry>Requests the panel is reparented in the window titlebar. See below for limitations.</entry>
    </row>
    
    <row valign='top'>
    <entry>--size</entry>        
    <entry>size in pixels</entry>
    <entry>Specify the height/width of panel</entry>
    </row>
    
    <row valign='top'>
	 <entry>--no-session, -ns</entry>
	 <entry>na</entry>
	 <entry>Disable the panels sessioning mechanism</entry>
    </row>

    <row valign='top'>
	 <entry>--default-apps, -da</entry>
	 <entry>Comma separated list of panel apps or 'none'</entry>
	 <entry>Specify a list of apps to be started in order when a session file
       does not exist. If set to 'none' no default panel apps are started.
       </entry>
    </row>

    <row valign='top'>
	 <entry>--no-menu, -nm</entry>
	 <entry>na</entry>
	 <entry>Diable the panels popup menu</entry>
    </row>
    <row valign='top'>
	 <entry>--overide-bubbles, -o</entry>
	 <entry>na</entry>
	 <entry>If panel message bubbles are decorated by your chosen window manager, use this option as a workaround</entry> 
    </row>
    <row valign='top'>
	 <entry>--bgcolor,  -c</entry>       
	 <entry>#rrggbb</entry>
	 <entry>Specify a background color for the dock</entry>
    </row>
    
    <row valign='top'>
	 <entry>--bgpixmap, -b</entry>       
	 <entry>image filename</entry>
	 <entry>Specify a tiled background for the panel</entry>
    </row>
    <row valign='top'>
    <entry>--bgtrans,  -bt</entry>      
    <entry>'yes'|transparency percentage</entry>
    <entry>

     Specify the panel 'psuedo' transparency. For this to work you need either mbdesktop running, or a program that sets the root window pixmap and exports it Pixmap ID ( matchbox-desktop will set this ).

     </entry>
    </row>
    </tbody>
    </tgroup>
    </table>

<para>

Its possible for matchbox-panel to be reparented in main application window
titlebars with the '--titlebar' switch. For this to work, the Matchbox
WM theme.xml file must define an area in the main window frame for the
panel via a &lt;panel&gt; tag. 

</para>
<para>

Also in this mode, the switches --size, --orientation, --bgtrans and --use-flip will have no effect.

</para>
<para>

Some examples of panel usage ;

</para>
<para>
A transparent 60 pixel wide side panel

</para>
<para>

<programlisting>
mbdock --size 60 --orientaion east --bgtrans yes &
</programlisting>

</para>
<para>

Running 2 panels at the top and bottom of the display

</para>
<para>

<programlisting>
mbdock --orientaion north &
mbdock --id 2--orientaion south &
</programlisting>

</para>
<para>

An 'embedded titlebar' clock panel with no sessioning and no menu. 

</para>
<para>

<programlisting>
mbdock --titlebar --no-menu --no-session --default-apps minitime &
</programlisting>

</para>
<para>

The panel is fully themeable and will follow the current window
manager theme.  Refer to the <ulink url="themes/index.html">Matchbox
Themeing-Howto</ulink> for more infomation.

</para>
<para>

Setting a background option on the command line will override any
external theme settings having an effect of the panel background.

</para>
<para>
</section>

<section id="panelapps"><title>Panel Applications</title>

<para>

The matchbox-panel package includes a number of simple panel apps. All
of which understand the following options;

</para>

<table>
<title>General Panel App command line options</title>
<tgroup cols="3" align="left" colsep="1" rowsep="10">
<thead>
<row valign='top'>
<entry>Command Line Switch</entry>
<entry>Value Type</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row valign='top'>
<entry>--display, -d</entry>      
<entry>string</entry>         
<entry>X11 Display to connect to</entry>
</row>
<row valign='top'>
<entry>--offset, -o</entry>      
<entry>integer</entry>         
<entry>

Specify the number of pixels to position the app from the trays origin. Note its unlikely many trays will allow free positioning. The matchbox
panel uses positive/negative offset values to determine what side of the
tray the app is stacked. Negative values will stack the app at the beginning of the panel, anything else will stack from the end.

</entry>

</row>

<row valign='top'>
<entry>--no-session, -ns</entry>      
<entry>na</entry>         
<entry>

Stops the panel from storing the application in its session file. 

</entry>
</row>


</tbody>
</tgroup>
</table>

<para>

Panel applets also honor the <envar>SYSTEM_TRAY_ID</envar> envirometal var used to specify the panel ID to dock with.

</para>


<section><title>mb-applet-menu-launcher</title>

<para>

A menu based application launcher. Reads .desktop files found in
$PREFIX/share/applications/ ( and ~/.applications ). 

</para>

<para>

The menu structure is defined by .directory files found in $PREFIX/share/matchbox/vfolders ( See the section on mbdesktop for more info ).

</para>
<para>

mb-applet-menu-launcher reads theme settings from the theme.desktop file as the panel. 

</para>
<para>

mb-applet-menu-launcher will also participate in single instance / startup notification protocols. Just like the window manager keyboard shortcuts. 

</para>
<para>

          <tip>
                <title>Tip</title>
                <para>
Menu entrys from debian style /usr/lib/menu entry's will also be used
if the <envar>MB_USE_DEB_MENUS</envar> enviromental var is set.

 	        </para> 
         </tip>
</para>

</section>
<section><title>mb-applet-launcher </title>
<para>
mb-applet-launcher can be used to create simple panel launchers. 

</para>
<para>

<screen>
<userinput>mb-applet-launcher [options..] [ [ &lt;xpm|png filename&gt; &lt;command&gt; ] [ --desktop &lt;.desktop file&gt; ]</userinput>
</screen>

</para>
<para>

<table>
<title>monolaunch command line options</title>
<tgroup cols="3" align="left" colsep="1" rowsep="10">
<thead>
<row valign='top'>
<entry>Command Line Switch</entry>
<entry>Value Type</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row valign='top'>
<entry>--title</entry>            
<entry>str</entry>
<entry>
Set the panel apps title, defaults to command line string. 
</entry>
</row>
<row valign='top'>
<entry>--kill, -k</entry>         
<entry>na.</entry>        
<entry>Toggle app by destroying, rather than iconizing</entry>
</row>
<row valign='top'>
<entry>--respawn, -l</entry>    
<entry>na.</entry>        
<entry>Launch multiple copies of the command line</entry>
</row>
<row valign='top'>
<entry>--no-animation,-na</entry>    
<entry>na.</entry>        
<entry>Disables launch animation.</entry>
</row>
<row valign='top'>
<entry>--message, -m</entry>      
<entry>na</entry>         
<entry>Capture the output of the command and send it as a message bubble to the dock when the applet is clicked.</entry>
</row>
<row valign='top'>
<entry>--desktop</entry>    
<entry>.desktop filename</entry>    
<entry>Use just this option to create a launcher from an existing .desktop file.</entry>
</row>
</tbody>
</tgroup>
</table>

</para>
<para>
          <tip>
                <title>Tip</title>
                <para>

		mb-applet-launcher can be togeather with matchbox-remote to 
		create window-manager controling buttons. 

 	        </para> 
         </tip>
</para>

</section>
<section><title>mb-applet-clock</title>

<para>
A simple clock.
</para>

</section>

<section><title>mb-applet-wireless</title>

<para>
Monitors the strength of wireless connections.
</para>

</section>
<section><title>mb-applet-system-monitor</title>

<para>
A memory / cpu usage monitor.
</para>

</section>
<section><title>mb-applet-battery</title>

<para>
A battery power level monitor - it requires libapm to build.
</para>

</section>
</section>
</section>

<section><title>Matchbox Desktop</title>
<para>
The desktop is kept at the very bottom of the window stack. It is
provided primarily as an application launcher but can be extended for numerous other uses.

</para>
<section><title>Usage And Configuration</title>
<para>
<screen>
matchbox-desktop [options]
</screen>
</para>
<table>
<title>Matchbox Desktop command line options</title>
<tgroup cols="3" align="left" colsep="10" rowsep="10">
<thead>
<row valign='top'>
<entry>Command Line Switch</entry>
<entry>Value Type</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row valign='top'>
<entry>-display</entry>
<entry></entry>       
<entry>Display to connect to</entry>
</row>
<row valign='top'>
<entry>--bg</entry>            
<entry>str</entry>
<entry>
See below for details
</entry>
</row>
<row valign='top'>
<entry>--icon-size</entry>
<entry>   integer</entry>
<entry>Icon size</entry>
</row>
<row valign='top'>
<entry>--icon-padding</entry>      
<entry>integer</entry>         
<entry>Spacing in  pixels between icons</entry>
</row>
<row valign='top'>
<entry>--font</entry>         
<entry>font definition,</entry>        
<entry>Icon font, eg <emphasis>Sans Bold 10</emphasis> or 
	    <emphasis>Sans-10:bold</emphasis>
</entry>
</row>
<row valign='top'>
<entry>--titlefont</entry>    
<entry>font definition, </entry>        
<entry>Title font</entry>
</row>
<row valign='top'>
<entry>--fontcol</entry>      
<entry>color definition (#rrggbb)</entry>         
<entry>Font color</entry>
</row>
<row valign='top'>
<entry>--no-outline</entry>      
<entry></entry>         
<entry>Text is drawn without outline</entry>
</row>
</tbody>
</tgroup>
</table>
<para>

The value used to define various background types should follow the following formats.

<itemizedList>
    <listitem><para>img-stretched:[filename]</para></listitem>
    <listitem><para>img-tiled:[filename]</para></listitem>
    <listitem><para>img-centered:[filename]</para></listitem>
    <listitem><para>col-solid:[color definition]</para></listitem>
    <listitem><para>col-gradient-vertical:[start color],[end color]</para></listitem>
    <listitem><para>col-gradient-horizontal:[start color],[end color]</para></listitem>
</itemizedList>
  a color is specified as a color name or an rgb def in the form 'rgb:r/g/b' or '#RGB

</para>

<para>

The desktop is also fully themeable and will follow the current window
manager theme.  Refer to the <ulink url="themes/index.html">Matchbox
Themeing-Howto</ulink> for more infomation.

</para>

</section>
<section><title>Plugin Modules</title>
<para>
matchbox-desktop uses dynamically loadable modules to populate itself with entrys. 
</para>
<para>
Matchbox comes with 3 modules. A main application launcher which uses
.desktop files, a simple tasks manager and a simple
file browser.
</para>
<para>
What modules are used are set in  $PREFIX/share/matchbox/mbdesktop_modules or set per user in ~/.matchbox/mbdesktop_modules.
</para>
<para>

Its quite easy to write your own modules. Please refer to the desktop/modules directory for examples.

</para>
</section>
<section><title>Adding Icons And Folders</title>
<para>

          <tip>
                <title>Note</title>
                <para>
		The following is also true for mb-applet-menu-launcher.
 	        </para> 
         </tip>

</para>
<para>

The directory's PREFIX/share/applications and HOME/applications are checked for the existence of 'INI style' .desktop files. A .desktop contains information about a program entry including its name, icon, executable string etc. 
</para>
<para>

A simple example is;
<programlisting>
[Desktop Entry]
Name=Figment
Comment=An Outliner
Exec=figment
Icon=figment.png
Type=Application
Categories=Application;Core;
</programlisting>
</para>
<para>

The Icon entry should not specify a path, just the filename of the required image located in PREFIX/share/pixmaps. Locale based entrys can be added by appending a [contry_code] to the required key.

</para>
<para>

Information for what and how mbdesktop should create folders for the above entries is stored in $PREFIX/share/matchbox/vfolder and overridden by $HOME/.matchbox/vfolders/ .

</para>
<para>

The directory should contain a root.order file, a root.directory file,
and optionally a number of other .directory files describing each folder.

</para>
<para>

The .directory files are just like .desktop files but describe a
folder rather than a application. The root.order files specifys which
and what order the directory files should be displayed in. 

</para>
<para>

A
.directory file should have a 'match' key of which its value is used
to compare against .desktop files Categories key value. This decides
which folder a .desktop file ends up in. If the match key is set to 'fallback', any Categories that are not matched will end up here. 

</para>

<para>

The fill desktop entry spec can be found at <ulink url="http://www.freedesktop.org/standards/desktop-entry-spec/">freedesktop.org</ulink>, also a nice introduction to .desktop files can be found at <ulink url="http://developers.sun.com/solaris/articles/integrating_gnome.html">Suns developer site</ulink>. Note Matchbox currently supports only the 'core' of the specification. 

</para>


</section>
</section>

<section id="authors">
  <title>Authors</title>
  <para>
   Matchbox was primarily written by Matthew Allum
   (<email>mallum@openedhand.com</email>). To find more information about
   Matchbox, please visit the <ulink
   url="http://projects.o-hand.com/matchbox" type="http">Matchbox Project Web
   page</ulink>.  Please send all comments, suggestions, and bug
   reports to the <ulink url="http://bugs.openedhand.com" type="http">Matchbox
   bug tracking database</ulink>.
  </para>

  <para>
   This manual was written by Matthew Allum
   (<email>mallum@openedhand.com</email>). Please send all comments and
   suggestions regarding this manual to Matthew or report them in the bug tracker.
  </para>


 </section>


 <!-- ============= Application License ============================= -->

 <section id="license">
  <title>License</title>
  <para>
   This program is free software; you can redistribute it and/or
   modify it under the terms of the <citetitle>GNU General Public
   License</citetitle> as published by the Free Software Foundation;
   either version 2 of the License, or (at your option) any later
   version.
  </para>
  <para>
   This program is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   <citetitle>GNU General Public License</citetitle> for more details.
  </para>
  <para>
   A copy of the <citetitle>GNU General Public License</citetitle> is
   included as an appendix to the <citetitle>GNOME Users
   Guide</citetitle>.  You may also obtain a copy of the
   <citetitle>GNU General Public License</citetitle> from the Free
   Software Foundation by visiting <ulink type="http"
   url="http://www.fsf.org">their Web site</ulink> or by writing to
   <address>
    Free Software Foundation, Inc.
    <street>59 Temple Place</street> - Suite 330
    <city>Boston</city>, <state>MA</state> <postcode>02111-1307</postcode>
    <country>USA</country>
   </address>
  </para>
 </section>

 <section id="building">
  <title>Appendix I: Building Matchbox from source.</title>
  <para>
  Firstly its recommended if your not used to building software from
  source, you should check your distrobution for pre built binary
  matchbox packages.
  </para>
  <para>
  All Matchbox packages use GNU autotools and are configured and build
  by the usual;
  </para>
  <para>
  <programlisting>                                                           
% ./configure
% make
% sudo make install
</programlisting>
  </para>
  <para>                                                                     
   You can see the various compile time options for enabling extra
   features and dependencies by running. 
</para>
<para>
  <programlisting>
% ./configure --help
  </programlisting>                                                            </para>
<para>                     
<ulink type="http"
        url="http://projects.o-hand.com/matchbox/whatis.shtml">What is matchbox</ulink> gives more infomation on each optional dependency.
                                                                                  </para>

<section><title>Inter Dependencies</title>
<para>
Virtually all packages are dependant on libmatchbox. You should build
and install libmatchbox first. All font and image  operations
are provided to other matchbx packages via libmatchbox. Therefore the
configure options you choose here ( such as Pango, JPEG support ) will
affect dependant packages.
</para>
<para>                                                                                
Matchbox-window-manager can be built <emphasis>without</emphasis> libmatchbox using the
--enable-standalone options. It is highly recommeded you only do this
is you intend to run <emphasis>only</emphasis> the window manager with no bells and
whistles such as themeing. This build option is intended mainly for
platforms where resources are very low or you want a quick and
depencie free window manager for testing on a new platform
</para>
<para>
If you decide to install the matchbox-panel or matchbox-desktop
packages you should install the matchbox-common package first. It
contains icons and launcher configuration data shared by both the
desktop and the panel menu launcher.
</para>
<para>                                                                                
If you encounter problems building, please report to the <ulink type="http" url="http://projects.o-hand.com/matchbox/mailinglist.shtml">mailing list</ulink>
for help.
</para>

</section> <section><title>Automated building</title> 
<para> 

An
automated build script is available to ease the build process.  This
will build a fully featured matchbox enviroment including the window
manager, desktop, panel and panel applications.
</para>
<para>                                                                                
Downlaod <ulink type="http" url="http://projects.o-hand.com/matchbox/sources/utils/matchbox-autobuild.sh">matchbox-autobuild.sh</ulink> script. Open in your favourite text editor, edit the
varibles at the top of the top and then run.
</para>                                                                                
</section>
<section><title>Building from CVS</title>
<para>                                                                                
If you plan on building from CVS, then before you build;
</para>
<para>
<itemizedList>
    <listitem><para>autoconf --version must report 2.5 or later</para></listitem>
    <listitem><para>  automake --version must report 1.7.x</para></listitem>
    <listitem><para>  libtool --version must report 1.5 (available from <ulink type="http" url="http://ftp.club.cc.cmu.edu/\pub/gnu/libtool/libtool-1.5.tar.gz">http://ftp.club.cc.cmu.edu/\pub/gnu/libtool/libtool-1.5.tar.gz</ulink> if your distribution doesn't have it)
</para></listitem>
    <listitem><para>pkg-config --version must report 0.9.0 or later</para></listitem>                                                                         </itemizedList>         
</para>
<para>
If you plan on submitting patches please diff them against CVS.
</para>

 </section>
 </section>
</article>