10

I'm trying out Linux Mint 11 with LXDE. I'm used to being able to lock the screen with a keyboard combination (for example, Win+L on Windows) rather than tracking down a menu or clicking an icon.

Web search returned Ctrl+Alt+L as a default combination to lock the screen, but this did nothing for me.

Is there a way to do this in LXDE?

Update:

The link to http://wiki.lxde.org in the answer has the required steps, except that in Mint 11 the file is called mintlxde-rc.xml.

Ash
  • 3,064
  • 4
  • 30
  • 31

4 Answers4

8

In Linux Mint 18.3 (Sylvia) GUI, go to Menu -> Preferences -> Keyboard -> Shortcuts.

Expand the System tab and you should see a Lock Screen shortcut setting.

The default shortcut to lock the screen is Ctrl+Alt+L.

alex
  • 186
7

Add the following to the <keyboard> section of ~/.config/openbox/lxde-rc.xml :

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

Then run this command:

openbox --reconfigure

Now Ctrl-Alt-l should lock the screen.

6

I use mint10 where you go to menu-> preferences -> keyboard shortcuts.
I have not been able to find any gui lxde and do not have away of testing these methods.
LXDE:Questions,
Search to Index 3. mouse/keyboard,for mint 11 the file is mintlxde-rc.xml.
From Stray notes,
From Sourceforge,
From openbox/org,
I hope something helps.

mic84
  • 2,413
1

I'm being lazy and just type xlock in a terminal, which I always have opened even if it's a GUI session. It works everywhere and is not tied to a particular hotkey combination that may be unavailable somewhere.

vtest
  • 5,358