mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Allow highest level menu definitions - typically used for root-menu and
client-menu - to be defined like this:
<openbox_menu>
<menu id="">
</menu>
</openbox>
Previously this required a label attribute (which was not used for
anything and could be an empty string) as show below:
<openbox_menu>
<menu id="" label="">
</menu>
</openbox>
Closes issue #472
54 lines
1.3 KiB
XML
54 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<openbox_menu>
|
|
|
|
<menu id="client-menu">
|
|
<item label="Minimize">
|
|
<action name="Iconify" />
|
|
</item>
|
|
<item label="Maximize">
|
|
<action name="ToggleMaximize" />
|
|
</item>
|
|
<item label="Fullscreen">
|
|
<action name="ToggleFullscreen" />
|
|
</item>
|
|
<item label="Decorations">
|
|
<action name="ToggleDecorations" />
|
|
</item>
|
|
<item label="AlwaysOnTop">
|
|
<action name="ToggleAlwaysOnTop" />
|
|
</item>
|
|
<menu id="workspaces" label="Workspace">
|
|
<item label="Move left">
|
|
<action name="SendToDesktop" to="left" />
|
|
<action name="GoToDesktop" to="left" />
|
|
</item>
|
|
<item label="Move right">
|
|
<action name="SendToDesktop" to="right" />
|
|
<action name="GoToDesktop" to="right" />
|
|
</item>
|
|
</menu>
|
|
<item label="Close">
|
|
<action name="Close" />
|
|
</item>
|
|
</menu>
|
|
|
|
<menu id="root-menu">
|
|
<item label="Web browser">
|
|
<action name="Execute"><command>firefox</command></action>
|
|
</item>
|
|
<item label="Terminal">
|
|
<action name="Execute"><command>alacritty</command></action>
|
|
</item>
|
|
<item label="Reconfigure">
|
|
<action name="Reconfigure"></action>
|
|
</item>
|
|
<item label="Exit">
|
|
<action name="Exit"></action>
|
|
</item>
|
|
<item label="Poweroff">
|
|
<action name="Execute"><command>systemctl -i poweroff</command></action>
|
|
</item>
|
|
</menu>
|
|
|
|
</openbox_menu>
|