Author Topic: Map One Key To Another?  (Read 1795 times)

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Map One Key To Another?
« 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).
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
Map One Key To Another?
« Reply #1 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 ?
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing