ctrl-alt-2 as at (@)

Matthias Apitz guru at unixarea.de
Sat Jun 6 11:33:55 PDT 2015


Hi Knut,

First of all, you should not top-post and you should not send ASCII and
HTML to a mailing list. Normally I do not respond to top-post replies.
Any way ...

El día Saturday, June 06, 2015 a las 03:22:13PM +0200, Knut Olav Bøhmer escribió:

> Hi,
> 
> Thank you for the suggestion. I tried to explain in the first email that I
> had tried to do it with xmodmap. But I don't know how to do it. And the
> manual does not explain how to make such keyboard combos.
> 
> Could anyone explain how to do it? Or show me where in the manual I should
> read?

You can map a keycode to a keysym with a syntax like this (like I'm used
to do so for having Spanish tilded chars on a German keyboard):

xmodmap -e "keycode 0x40 =  Mode_switch"
xmodmap -e "keycode 0x39 =  n N ntilde Ntilde"
...


> The keycodes are
> Control_L: 37
> Alt_L: 64
> 2: 11
> 
> 
> KeyPress event, serial 36, synthetic NO, window 0x1e00001,
>     root 0xc0, subw 0x0, time 25387407, (102,88), root:(696,396),
>     state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False
> 
> KeyPress event, serial 36, synthetic NO, window 0x1e00001,
>     root 0xc0, subw 0x0, time 25389794, (102,88), root:(696,396),
>     state 0x4, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False
> 
> KeyPress event, serial 36, synthetic NO, window 0x1e00001,
>     root 0xc0, subw 0x0, time 25397355, (102,88), root:(696,396),
>     state 0xc, keycode 11 (keysym 0x32, 2), same_screen YES,
>     XLookupString gives 1 bytes: (00) ""
>     XmbLookupString gives 1 bytes: (00) ""
>     XFilterEvent returns: False

Are the above three KeyPress events are shown when you only hit the key
with the @-symbol?

	matthias

-- 
Matthias Apitz, guru at unixarea.de, http://www.unixarea.de/ +49-170-4527211    +49-176-38902045
"Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden."
"Si el hombre es formado por las circunstancias entonces es necesario formar humanamente
las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138)


More information about the xorg mailing list