9

How do I setup a keyboard shortcut to run xscreensaver-command -lock when I press ctrl+alt+l? I've had a look at Raspbian keyboard shortcuts, but that talks about finding the keyboard shortcuts, not setting them.

1 Answers1

12

I just figured out how to do this. After having a look at ~/.config/openbox/lxde-pi-rc.xml. I just duplicated one of the <keybind> tags and edited the contents of the tag.

Heres my keybind:

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

You can find instructions to setup keybinds here