[lubuntu-users] Help: Map one key to another key in Lubuntu

Mark F azdays15 at gmail.com
Sat Oct 21 23:28:23 UTC 2017

I use the "xev" command to see the key names/codes for various keys. And,
have created key bindings in ~/.config/openbox/lubuntu-rc.xml. For example,
I made a script to turn off/on my touchpad (by pressing Window-key +

I don't think that will work for you. That seems to be a higher-level
"actions" (commands, window actions).

I think you want xmodmap. I played with this once in the past. You're going
to be dealing with keycode 65 (or symbol x020). You can see those codes
using xev and pressing the spacebar (if you had one).

If you execute "xmodmap -pke" it will display the current mappings.

This might have info about how to make a permanent change:


See this (scroll down a bit, and there's a part about remapping the


There is also an xkeycaps GUI you can install with

sudo apt-get install xkeycaps

After it installs, execute "xkeycaps" and you can right-click the space
bar, choose "Duplicate Key." It will display a crosshair to click the key
you want duplicated into a spacebar. (I think. I didn't proceed.). You can
also right-click the key you want to turn into a spacebar and chose "Edit
keysyms" and change it to have the settings of the spacebar.

I'm sure there are people here who do this stuff in their sleep. But, maybe
the above will get you started.

[1] See: http://openbox.org/wiki/Help:Bindings

After changing lubuntu-rc.xml execute "openbox --reconfigure" from a
command line

On Sun, Oct 15, 2017 at 4:35 AM, Siddhishwor Man Shrestha <
akshalok at gmail.com> wrote:

> Hello fellow Lubuntu users,
> I wanted to know if we can map certain key of keyboard to another key.
> The problem is the spacebar key of my laptop is broken. So I wanted to
> remap the "right click" key to the spacebar. I have been doing that on
> windows but couldn't find a way on lubuntu.
> I can bring an external keyboard if any typing on terminal is needed,
> though I often also use the laptop without the external keyboard so this is
> crucial to solve.
> Thanks,
> Siddhi.
> --
> Lubuntu-users mailing list
> Lubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/lubuntu-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/lubuntu-users/attachments/20171021/69960fce/attachment.html>

More information about the Lubuntu-users mailing list