Re: keybinding

rez santos <[email protected]> Sun, 29 May 2016 04:03:51 +0800
Newsgroups gmane.comp.window-managers.openbox
Message-ID <CAAFJK4Avj_bbTjLGTv9LwsrVr79am7S6i12i=oC+wUXRKq39iA@mail.gmail.com>
Thanks for your reply, I got an idea from it.
I used xmodmap to make the F11(assigned for lowering volume) key to print
the characters 0&), since it(F11) doesn't have any use for me since I have
R_CTR+down/up arrow to control my latop's speaker volume.


On Sun, May 29, 2016 at 1:17 AM, Łukasz Grabowski <[email protected]>
wrote:

> 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
> /usr/share/X11/xkb/symbols/latin
> by changing in the section "basic" the line
>     key <AB07><>{ [         m,          M,           mu,    masculine ]>};
> to
>     key <AB07><>{ [         m,          M,           0,    masculine ]>};
> and adding
>     include "level3(ralt_switch)"
> to the end of the section "basic".Then run
> setxkbmap latin basic
> from command line and right_alt+m produces 0 everywhere.
>
> Best,
> Łukasz
>
>
>
>
>
> 2016-05-28 16:08 GMT+01:00 rez santos <[email protected]>:
>
>> Hello, how can I make a keyboard shortcut for inserting a character (e.g.
>> 0) on any text editor?
>> 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.
>>
>> _______________________________________________
>> openbox mailing list
>> [email protected]
>> http://icculus.org/mailman/listinfo/openbox
>>
>
>
> _______________________________________________
> openbox mailing list
> [email protected]
> http://icculus.org/mailman/listinfo/openbox
>

_______________________________________________
openbox mailing list
[email protected]
http://icculus.org/mailman/listinfo/openbox