OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Capn_Fish on June 11, 2007, 07:13:14 pm

Title: Map One Key To Another?
Post by: Capn_Fish on June 11, 2007, 07:13:14 pm
Is it possible to map one key so, when pressed, it gives the same event as another key/gives the other key's keycode? Something like:

Code: [Select]
key keyY = $keyX
in the xmodmap file, perhaps?

I'm looking to do this to set multiple control/alt/fn keys, where just mapping them doesn't work (at least for control).
Title: Map One Key To Another?
Post by: louigi600 on June 12, 2007, 03:44:04 am
I think it can ... KK once told me howto do that in the /etc/sysconfig/<hardware>/keymap.map ... but I forgot.
There are also other maps for X:  
/etc/X11/kb/<hardware>/xmodmap and
/etc/X11/kb/<hardware>/userdefined.xmodmap

Another intresting thind would be if anyone knew howto produce the
"ALT+F1", "ALT+F2", ... "ALT+F7" equivalent keycodes (the ones used for text Vitrual Console {VC} switching) and also the
"CTRL+ALT+F1",  "CTRL+ALT+F2", ... "CTRL+ALT+F6" equifalent keycodes for switching from the grafix VC into one of the text VC ?