I got it figured out! I'm so clever I should be twins! Or something along those lines...
But anyway...
I managed to set up my keyboard to start the log out menu with the following hot-key combination;
Ctrl+Alt+x
This executes the app "
lxsession-logout"
Now in order to make this work, you have to go into
~/.config/openbox folder. Then open the folder named "
[distro]-rc.xml". And be very careful with this one, because it's easy to mess up things if you make a mistake or two!
Next, find the keyboard area to set hot keys. It's between the markers <keyboard> and </keyboard>
I used the following code to set the hot-key as I want it:
Code: Select all
<!-- Ctrl-Alt-x to execute the logout command -->
<keybind key="C-A-x">
<action name="Execute">
<command>lxsession-logout</command>
</action>
</keybind>
I
could have used the command
shutdown instead of
lxsession-logout. However, that would shut the computer down immediately and I'd run the risk of being careless and closing an app before saving my work. But you should be able to use the
shutdown command, I should think. I just like to err on the side of caution.
If you want to find more information on customizing your hot-keys and all that, I found this helpful site on this topic;
http://en.gentoo-wiki.com/wiki/Openbox# ... _shortcuts
Hope that's helpful! I used this sort of thing to add hot-keys to my Lubuntu set-up so that I have hot-keys to start my browser, email client, text editor, and to lock my screen.
If it makes any difference, I did this in Lubuntu. The commands might differ with distros not built on Ubuntu.
Enjoy!
