Some of the keys on my keyboard are broken. I am using LXDE/Openbox. Is it possible to make openbox shortcuts that output the corresponding key globally?


The numbers five and six are not working on my keyboard.

I am using LXDE/Openbox.

Is it possible to make a shortcut for example Alt plus F which always output the number five globally no matter what application I am using, even if it's the browser or something else?



I do something similar on my machine. I have a chromebook that has a backspace key, but not a delete key. Using LXDE's keybindings, I mapped alt-backspace to delete. This requires xdotool.

Take a look at ~/.config/openbox/lxde-rc.xml. Search for "keybind" and get to understand the syntax. Here's a chunk of my lxde-rc.xml for my mapping:

<keybind key="A-BackSpace">
  <action name="Execute">
    <command>xdotool key --clearmodifiers Delete</command>

That keybinding works anywhere in the LXDE session.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.