Saturday, September 11, 2010

Screen Locking Shortcut in LXDE

I liked having a keyboard shortcut, ctrl-alt-l, to lock the screen under Gnome. But in LXDE, it was a bit trickier to setup. There isn't a fancy GUI for setting these options (that I know of), one has to edit Openbox's configuration file: ~/.config/openbox/lxde-rc.xml

Find the "<keyboard>" section and add the following:

<keybind key="C-A-l">
<action name="Execute">
<command>xscreensaver-command -lock</command>
</action>
</keybind>

3 comments:

Unknown said...

Exactly the same problem I found with Mint LXDE. Your solution works great, thanks! -A

Greg_Anastasi said...

I second that. Thanks

Gudu said...

hi guys ! yes, works fine but a found a little problem... when the system locks by time, this conflicts with the above and we need to enter the password twice... any tips ?