umlaute with X

May 8th, 2008

Tags: , ,

To use german Umlaute (i.e. ä, ö, ü, and ß) with an american keyboard you have to patch Xmodmap.

Before you can edit the xmodmap, you need to identify the right code for each. This can be done with xev which prints contents of X events.

Run

CODE:
  1. xev

to see a key code for a certain, press this key and xev will show the code.

These codes can now be stored into your home dir into

CODE:
  1. ~/.Xmodmap

Mine looks like this

CODE:
  1. keycode 227 = Mode_switch
  2. keycode  38 = a A adiaeresis Adiaeresis
  3. keycode  30 = u U udiaeresis Udiaeresis
  4. keycode  32 = o O odiaeresis Odiaeresis
  5. keycode  39 = s S ssharp

Leave a Reply