xmodmap help needed


EvilDragon

Administrator
Staff member
Joined
Mar 4, 2003
Messages
29,986
Age
46
Location
Ingolstadt
I'm currently working on implementing the Pyra keyboard layout into xmodmap, but there's one thing I didn't find out yet.

First the current status:
All keys and buttons work fine out of the box and report back the proper keys (CTRL, ALT, META, etc.)

What I did not find out however is how to map the Meta-Character layer on the keyboard (the orange labels on our keymat).

META_L (that's the orange modifier key) has the correct keycode and is setup as modifier key.

However: Where and how can I tell xmodmap which character it should use when e.g. META_L and A is being pressed?

I didn't find ANYTHING about that... anyone knows?
 
On the Pandora the Fn-Key handled in the Kernel, not as visible Key, i think. This may be what you are looking for: https://wiki.archlinux.org/index.php/xmodmap#Keymap_table
So "keycode <keycode> = a b c d e f g h i j" Is:
Key=a
Key+Shift=b
Key+mode_switch=c
Key+mode_switch+shift=d
AltGr+Key=e
AltGr+Shift+Key=f
AltGr+Shift+mode_switch=g(but somehow gives "d" for me)
And so forth...(in theori (Sori the y kei is assinged to "mode_switch" for me to test that stuff :) ))
 
Last edited:
Yes, I've seen that table... but where is META_L here? :)
[doublepost=1459211601,1459211282][/doublepost]Ah, this seems useful:
http://offend.me.uk/blog/14/

So I need to define META_L as ModeSwitch key first.
[doublepost=1459211971][/doublepost]Yep, that worked!
Now I can create the Pyra keymap. Thanks!
 
I'm not sure that xmodmap is the right way to go, since it is just a compatibility layer above the current input layer (which I think is xkb, but this could have been replaced already by something newer when I wasn't looking). I'll post my Pandora xkb file, when I'm home.
 
Not sure that uploading the attachment worked in this browser, but if it did, the archive contains two xkb keymaps, one that replicates the keymap installed after the default pandora xmodmap file is executed and one that has some modifications I played around with (and some comments that are probably only applicable to the pandora).

Installing a keymap is literally just 'xkbcomp <xkb file> $DISPLAY'.

The following link was helpful while playing around with this: https://wiki.archlinux.org/index.php/X_KeyBoard_extension#Basic_information_on_XKB
 

Attachments

  • pandora_xkb.zip
    9.6 KB · Views: 254
Back
Top