Menu

Writing Pipeitems

A pipeitem is similar to Openbox's pipemenus feature. Unlike pipemenus, pipeitems place their generated items directly inside their parent menu. This allows for some interesting possibilities, like a menu turning into a launcher if the app the menu is supposed to control isn't running.

The most common elements you might use in your pipeitem:
<menu name="namehere" icon="someoptionalicon">contents</menu>: generates a menu to place your items in
<item type="launcher"><name>optional name</name><command>optional command</command><icon>optional icon</icon></item>: creates a standard launcher/menu item
<separator name="optname" icon="opticon"/>: Creates a normal or decorated separator.
Attributes you should be aware of:
mode="exec": Available to menu, separator, and name elements. Optionally sets the name to be dynamically generated (for performance reasons, though, you shouldn't use this since the pipeitem is dynamically generated)
mode1="file": Available to menu, separator, and icon elements. Optionally sets the icon based on filepath.

Posted by Sapphira Armageddos 2012-11-18

Log in to post a comment.