<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I've been using Openbox for so long. But still do a two steps shutdown. I first c<span>lick on exist. Then click shutdown on my display manager which is LDM.<br>
<br>
Thought it would be the time switch to a shortcut. <span>I don't use Gnome or any other DE. Just Openbox in a minimal Debian setup.</span><br>
<br>
I've seen the suggestions about adding a menu item like the following:<br>
<pre><code><item label="Shutdown">
    <action name="Execute">
        <command>systemctl poweroff</command>
    </action>
</item><br><br><span style="font-family: Calibri,Helvetica,sans-serif;">But I want a command that first quits Openbox and then perfo</span><span style="font-family: Calibri,Helvetica,sans-serif;">rms a shutdown.</span><br><span style="font-family: Calibri,Helvetica,sans-serif;">​Could somebody suggest me one please?<br><br>Thanks,<br>Gayan<br></span></code></pre>
<br>
</span></div>
</div>
</body>
</html>