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.
Asked
Active
Viewed 1.2k times
9
1 Answers
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
/etc/xdg/openbox/lxde-pi-rc.xml
. – DonkeyKong Sep 06 '20 at 14:15