Crunchbang seems to come with a differently configured Openbox than what I get when installing on Debian. My Exit menu is not as pretty as yours and has even fewer options:
So, it looks like your Openbox is configured to launch a different exit menu than mine. I might be able to help more if you figure out exactly what it launches and what it's called. In the meantime, as a workaround, you can add a Suspend
menu entry to your menu:
Set up sudo
to allow you to run pm-suspend
with no password. Open a terminal, run visudo
and add this line (assuming your username is aswin
):
aswin ALL=NOPASSWD:/usr/sbin/pm-suspend
If you're not used to vi
, you can also edit the file /etc/sudoers
directly but using visudo
is safer.
Add a new menu entry to the Openbox menu that runs sudo pm-suspend
. Edit the menu file at ~/.config/openbox/menu.xml
(if the file is not there, copy it from /etc/xdg/openbox/menu.xml
) and add these lines:
<separator />
<item label="Suspend">
<action name="Execute"><execute>sudo pm-suspend</execute></action>
</item>
Now, restart Openbox and your menu will include the new Suspend
entry which should suspend your computer with no need for a password: