Embed - xfce4-embed-plugin

This plugin project has been archived and is no longer supported. If you would like to contribute and help update this project, please see this open issue

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:

  1. If there are any selection criteria specified, it will search for a window that meets all of the specified criteria.
  2. 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).
  3. 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.
  4. The window is embedded and resized to fill the plugin, as specified.
  5. If the label is to include the title, the window is monitored for title changes.
  6. 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.

style "buddylist_style"
{
    text[NORMAL] = "#ffffff"
    text[PRELIGHT] = "#ffffff"
    base[ACTIVE] = shade(.7,"#686868")
    base[NORMAL] = shade(.7,"#686868")
    bg[ACTIVE] = shade(.7,"#686868")
    bg[NORMAL] = shade(.7,"#686868")
    bg[PRELIGHT] = shade(.7,"#686868")
}
widget "*pidgin_blist*" style "buddylist_style"

Back To Top


Screenshots

Embedding Pidgin's buddy list into the panel:

Buddy list embedding configuration dialog Buddy list embedding result

Embedding Claws Mail's new mail ticker into a thin panel (the ticker moves, so the entire author/subject/folder can be read):

Mail ticker embedding configuration dialog Mail ticker embedding result

The label right-click menu:

Right-click menu

The top of an example deskbar panel with a clock, two instances of Genmon, and two embedded windows:

Example deskbar configuration with two embedded windows

Back To Top


Latest Release

Read the CHANGELOG

Back to Top


Source Code Repository

https://gitlab.xfce.org/panel-plugins/xfce4-embed-plugin


Reporting Bugs

Back To Top


Return to Main Xfce4-panel page