Author Topic: Keymapping on X11  (Read 1782 times)

Doni

  • Newbie
  • *
  • Posts: 1
    • View Profile
Keymapping on X11
« on: May 23, 2004, 04:22:43 pm »
Hello,

a newbie question. Any possibility to make custom keyboard maps on X11? I\'m in need for the scandinavic keyboard layout i.e. I\'d like to map Fn+a and Fn+o (or some other buttons) to generate äöå.

Can\'t seem to find a program to do this ...

Any help would be appreciated. Thanx.

.Janne

Zazz

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Keymapping on X11
« Reply #1 on: May 23, 2004, 06:28:57 pm »
For a quick and minimal X-only solution, your best bet is to use xmodmap to map Multi_key and/or dead_diaeresis to a key. Run xev to find the keycode you wish to map (e.g. 48 for the Home key near the Cancel/Ok pair), then execute \"xmodmap -e \'keycode 48 = dead_diaeresis Multi_key\'\". Now pressing the key (Home or whatever you chose), releasing it, and pressing \'a\' puts \'\"\' on top of \'a\', similar for other characters. To generate the \'a\' with a ring on top, press Shift-Home, \'a\', \'a\' (or \'0\', \'a\' or whatever your compose sequence is), releasing keys after every press. A more thorough solution would fix the kernel/console keymap and load it with loadkeys before starting X.