Change the openbox keybindings.
I just started to look at this -- it's not enough for what I want to do, but it will solve your problem.
Right now, Smart has configured the power button to launch
coman, which is the program you see when you touch the power button.
The config file is
/home/user/.config/openbox/lxde-rc.xml. There is a section called
<keyboard> that has what you need to change.
Look for :
Code:
<keybind key="XF86PowerOff">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>coman</name>
</startupnotify>
<command>coman</command>
</action>
</keybind>
Change it to:
Code:
<keybind key="XF86PowerOff">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Suspend</name>
</startupnotify>
<command>sudo pm-suspend</command>
</action>
</keybind>
Now when you press the power button, the device will suspend.
If you find it is happening by accident a lot -- you keep unintentionally pressing the button -- add the following line:
Code:
<prompt>Suspend Device?</prompt>
below the
<command> line. It will ask you if you want to suspend.
You can still power off from the normal menu, and you can still configure the touchscreen with Alt-Power.
I'm not an openbox guy, but that should work.
Now, does anyone know how to make keymaps? I want to globally configure Alt-Esc as F11. Help!
m a r