Tip: The commands provided can also be attached to keybinds.
The ~/.
config
/
openbox
/
menu
.
xml
file can be edited in order to provide a sub-menu with the same options
as provided by oblogout. The sample script below
will provide all of these options, with the exception of the ability to lock the screen:
<menu id="exit-menu" label="Exit">
<item label="Log Out">
<action name="Execute">
<command>openbox --exit</command>
</action>
</item>
<item label="Shutdown">
<action name="Execute">
<command>systemctl poweroff</command>
</action>
</item>
<item label="Restart">
<action name="Execute">
<command>systemctl reboot</command>
</action>
</item>
<item label="Suspend">
<action name="Execute">
<command>systemctl suspend</command>
</action>
</item>
<item label="Hibernate">
<action name="Execute">
<command>systemctl hibernate</command>
</action>
</item>
</menu>
Once the entries have been composed, add the following line to present the sub-menu where desired within the main desktop menu (usually as the last entry):
<menu id="exit-menu"/>