4. Matchbox Panel

The Matchbox panel is a lightweight, always visible application that occupy s a rectangular area of the display. It is intended to hold applets such as application launchers, and simple user information type tools, such as a battery power level monitor or clock.

The panel can supports different orientations and sizes. It conforms to the System Tray Protocol specification for 'docking' applets.

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.

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

Other panels conforming to EWMH specifications such as the GNOME and KDE panels or your own creation can be used with matchbox window manager.

4.1. Usage And Configuration

With an X Server running and the DISPLAY environment variable set correctly, run matchbox panel via;

matchbox-panel [options]

Options are;

Table 2. Matchbox Panel command line options

OptionValue TypeDescription
-display, -dstring - X11 Display name Specify the X Server for the panel to connect to. Defaults to DISPLAY environmental variable.
--idintegerSpecify a unique id for the panel. This is needed if you wish to run multiple panels.
--orientationnorth|east|south|westSpecify what edge on the display the panel should be located
--margins<left/right>[, <top/bottom>] panel applet offsets in pixelsSpecify panel margin around applets. Defaults to 2,2
--padding<int> Specify spacing between panel applets in pixels
--titlebar Requests the panel is re-parented in the window titlebar. See below for limitations.
--sizesize in pixelsSpecify the height/width of panel
--no-session, -nsnaDisable the panels sessioning mechanism
--default-apps, -daComma separated list of panel apps or 'none'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.
--no-menu, -nmnaDiable the panels popup menu
--overide-bubbles, -onaIf panel message bubbles are decorated by your chosen window manager, use this option as a workaround
--bgcolor, -c#rrggbbSpecify a background color for the dock
--bgpixmap, -bimage filenameSpecify a tiled background for the panel
--bgtrans, -bt'yes'|transparency percentage Specify the panel 'psuedo' transparency. For this to work you need either matchbox-desktop running, or a program that sets the root window pixmap and exports it Pixmap ID ( matchbox-desktop will set this ).

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 <panel> tag.

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

Some examples of panel usage ;

A transparent 60 pixel wide side panel

matchbox-panel --size 60 --orientation east --bgtrans yes &

Running 2 panels at the top and bottom of the display

matchbox-panel --orientation north & matchbox-panel --id 2 --orientation south &

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

matchbox-panel --titlebar --no-menu --no-session --default-apps minitime &

The panel is fully themeable and will follow the current window manager theme. Refer to the Matchbox Themeing-Howto for more infomation.

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

4.2. Panel Applications

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

Table 3. General Panel App command line options

Command Line SwitchValue TypeDescription
--display, -dstringX11 Display to connect to
--offset, -ointeger 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.
--no-session, -nsna Stops the panel from storing the application in its session file.

Panel applets also honor the SYSTEM_TRAY_ID environmental var used to specify the panel ID to dock with.

[Tip]Tip

matchbox-panel-manager is a GTK based applications for managing the order of panel applets.

4.2.1. mb-applet-menu-launcher

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

The menu structure is defined by .directory files found in (install prefix)/share/matchbox/vfolders ( See the section on matchbox-desktop for more info ).

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

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

[Tip]Tip

Menu entrys from Debian style /usr/lib/menu entry's will also be used if the MB_USE_DEB_MENUS environmental variable is set.

4.2.2. mb-applet-launcher

mb-applet-launcher can be used to create simple panel launchers. Launch via;

mb-applet-launcher [options..] <xpm|png filename> <command> ]

or alternatively;

mb-applet-launcher --desktop <.desktop file>

Table 4. monolaunch command line options

Command Line SwitchValue TypeDescription
--titlestr Set the panel apps title, defaults to command line string.
--kill, -kna.Toggle app by destroying, rather than iconizing
--respawn, -lna.Launch multiple copies of the command line
--no-animation,-nana.Disables launch animation.
--message, -mnaCapture the output of the command and send it as a message bubble to the dock when the applet is clicked.
--desktop.desktop filenameUse just this option to create a launcher from an existing .desktop file.

[Tip]Tip

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

4.2.3. mb-applet-clock

A simple clock.

4.2.4. mb-applet-wireless

Monitors the strength of wireless connections.

4.2.5. mb-applet-system-monitor

A memory / cpu usage monitor.

4.2.6. mb-applet-battery

A battery power level monitor - it requires libapm to build.