Embed

About

This plugin enables the embedding of arbitrary application windows into the Xfce panel. The window is resized into the panel space available, and the associated program can be automatically launched if it is not open.

Example uses include embedding an instant messaging buddy list, a mail client's new mail ticker, a simple media application, or a fancy clock or timer. Combining with Xfce's ability to auto-hide panels can make this very convenient.

Usage

Upon creating the plugin in a panel, the preferences dialog will pop up, where you can set an optional launch command, window selection criteria (if any), label formatting and font, and the plugin size. Hover your mouse over any item for extra information.

The plugin works as follows:

If there are any selection criteria specified, it will search for a window that meets all of the specified criteria.

If no windows are found and criteria were specified, it will start monitoring X11 events to check new windows against the criteria. Regardless of whether or not there are criteria specified, if a launch command is provided, it will launch it at this point (once).

Once a window is found (or a window embeds itself, as is the case with GtkSockets), the original size of the window is captured and stored. This is used when the window is popped out, or if the minimum size is set to 0.

The window is embedded and resized to fill the plugin, as specified.

If the label is to include the title, the window is monitored for title changes.

If the window is destroyed, the plugin returns to step 1.

If you have a label (even if it is just a space), you can left-click it once to change keyboard focus to the embedded window (since panels do not give keyboard focus by default), and double-click it to pop the window out and in. You can do the same along with accessing the plugin preferences in the menu that pops up if you right-click the label.

Examples

The following are some sample configurations. Any selection criteria not mentioned are assumed to be blank, and any specified labels are only suggestions; they can certainly be modified to taste.

Embed Pidgin's buddy list:

Launch command (optional): pidgin

Process name: pidgin

Window title: ^Buddy List$

You may want to add a gtkrc-2.0 file to your ~/.purple directory to adjust the buddy list colors to match your panel, such as the following for the greybird theme: