<div dir="ltr"><div><div>I think in this case it would be preferable not to use openbox (although in principle you can use e.g. xdotool), but rather directly set a keyboard mapping via setxkbmap. For example in debian you could edit the file<br>/usr/share/X11/xkb/symbols/latin<br>by changing in the section "basic" the line<br>    key <AB07><>{ [         m,          M,           mu,    masculine ]>};<br></div>to <br>    key <AB07><>{ [         m,          M,           0,    masculine ]>};<br></div><div>and adding <br>    include "level3(ralt_switch)"<br></div><div>to the end of the section "basic".Then run <br>setxkbmap latin basic <br>from command line and right_alt+m produces 0 everywhere.<br><br></div><div>Best,<br></div><div>Łukasz<br></div><div><br><br></div><div><br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-28 16:08 GMT+01:00 rez santos <span dir="ltr"><<a href="mailto:metalheadpirate29@gmail.com" target="_blank">metalheadpirate29@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello, how can I make a keyboard shortcut for inserting a character (e.g. 0) on any text editor?<br></div>One of my laptop's key (0) is not working and it doesn't have a numpad so I want to insert the number 0 with "Ctr-m" as a key combination.<br></div>
<br>_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br></blockquote></div><br></div>