<div dir="ltr">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 + spacebar).[1]<div><br></div><div>I don't think that will work for you. That seems to be a higher-level "actions" (commands, window actions).</div><div><br></div><div>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).</div><div><br></div><div>If you execute "xmodmap -pke" it will display the current mappings.</div><div><br></div><div>This might have info about how to make a permanent change:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://wiki.archlinux.org/index.php/xmodmap">https://wiki.archlinux.org/index.php/xmodmap</a></div></blockquote><div><br></div><div>See this (scroll down a bit, and there's a part about remapping the spacebar):</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://askubuntu.com/questions/130144/how-to-map-a-key-to-another-on-my-keyboard">https://askubuntu.com/questions/130144/how-to-map-a-key-to-another-on-my-keyboard</a></div></blockquote><div><br></div><div>There is also an xkeycaps GUI you can install with </div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>sudo apt-get install xkeycaps</div></blockquote><div><br></div><div>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.</div><div><br></div><div>I'm sure there are people here who do this stuff in their sleep. But, maybe the above will get you started.</div><div><br></div><div>[1] See: <a href="http://openbox.org/wiki/Help:Bindings">http://openbox.org/wiki/Help:Bindings</a></div><div><a href="http://openbox.org/wiki/Help:Actions">http://openbox.org/wiki/Help:Actions</a><br></div><div><br></div><div>After changing lubuntu-rc.xml execute "openbox --reconfigure" from a command line </div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 15, 2017 at 4:35 AM, Siddhishwor Man Shrestha <span dir="ltr"><<a href="mailto:akshalok@gmail.com" target="_blank">akshalok@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello fellow Lubuntu users,<div><br></div><div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Thanks,</div><div>Siddhi.</div><div class="m_-5756891210762762292gmail_signature"><div dir="ltr"></div></div>
</div></div>
<br>--<br>
Lubuntu-users mailing list<br>
<a href="mailto:Lubuntu-users@lists.ubuntu.com">Lubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/lubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/lubuntu-users</a><br>
<br></blockquote></div><br></div>