BE::Shell Wiki
KISS Desktop Shell on KDE libs & some applications
Status: Beta
Brought to you by:
baghira-style
The global menu supports a customizable menu, found in ~/.kde/share/apps/be.shell/MainMenu.xml.
The structure is:
<menubar>
<menu [label|menu]="???">
[<menu [label|menu]="???" [preExec="???"] [preExecTimeout="nnn"]/>]
[<action label="???" [exec|dbus]="???"/>]
[<separator/>]
</menu>
</menubar>
It's nearly the same code as in XBar (which was ported from BE::Shell)
The first node is always "\<menubar>"
To add a menu entry, add a "\<menu>" node, this will add a popup menu.
It's attributes can be either
The actual popup menu entries can be subnodes
\<menu>
Yet another submenu
\<action>
An active item, that actually triggers sth., can also be put directly into the \<menubar> node, though this is rather uncommon.
It's attributes can be either
\<separator>
Yeah... guess what that might be.
Example
<menubar>
<menu menu="MainMenu/kate"/>
<menu label="Desktop">
<action label="XTerm" exec="xterm"/>
<action label="Toggle FX" dbus="session;org.kde.kwin;/KWin;org.kde.KWin;toggleCompositing"/>
<separator/>
<action label="Run Conky" exec="conky -c $HOME/.conky/mytop.conf"/>
<action label="Quit Conky" exec="killall conky"/>
</menu>
<action label="Edit Menu" exec="kwrite $HOME/.kde/share/apps/be.shell/MainMenu.xml"/>
</menubar>