Hello!
I'm trying to have both Mode_switch and ISO_Level3_Shift on the same keymap, but X is ignoring my ISO_Level3_Shift binding.
I want to have something like this in my xmodmap:
Code:
keysym c = c C ccedilla Ccedilla ccircumflex Ccircumflex
and have AltGr+c produce ccedilla and Insert+c produce ccircumflex. (Yes, Insert. It is in a strange place in this keyboard.) The original modifier map was:
Code:
vitor@pts5 vitor(0)$ cat /tmp/x
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_R (0x71), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
AltGr sends keycode 113 and keysym Alt_R. Insert sends keycode 106 (and keysym Insert, of course.) Then I tried:
Code:
vitor@pts5 vitor(0)$ xmodmap -e 'keycode 113 = Mode_switch'
vitor@pts5 vitor(0)$ xmodmap -e 'keycode 106 = ISO_Level3_Shift'
vitor@pts5 vitor(0)$ xmodmap -e 'keysym c = c C x X y Y z Z'
Now AltGr+c produces x, but Insert+c produces c.
Then I tried:
Code:
vitor@pts7 vitor(1)$ xmodmap -e 'clear mod5'
vitor@pts7 vitor(0)$ xmodmap -e 'add mod5 = Mode_switch'
But the problem persists. Trying to assign ISO_Level3_Shift to the AltGr key doesn't work either.
Any idea about what is happening here? I'm using Xorg 7.3 on Debian 5.07. Thanks in advance!