Use german umlauts and switch control/caps lock on a Sun US keyboard

I use a US keyboard for my work. It is much faster for programming and normal system administrative work. The thing is, I need german umlauts. What I do is to remap the caps lock key to a mode switch key and put a third function on certain keys.

I also use a Sun keyboard. The control and caps lock keys are switched on these types of keyboards. I want them switched to the normal layout.

Everything I described above is done in the following .Xmodmap file.

! Umlauts on US keyboard
! Sun keyboard caps lock/control switched
!
clear Lock                  # remove Caps Lock
remove Control = Control_L  # remove Control Left from Control
keycode 66 = Control_L      # assign Control Left on Caps Lock key
add Control = Control_L     # add Control Left to Control

keycode 37 = Mode_switch    # assign Mode_switch to Control key
keycode 32 = o O Odiaeresis # ö
keycode 30 = u U Udiaeresis # ü
keycode 38 = a A Adiaeresis # ä
keycode 39 = s S ssharp     # ß
keycode 54 = c C cent       # ¢
keycode 26 = e E EuroSign   # €
keycode 24 = q Q degree     # °

Use it with xmodmap ~/.Xmodmap.

If you just want to use german umlauts on a keyboard with caps lock as modifier key use the following.

! Umlaute on american keyboard
!
clear Lock
keycode 66 = Mode_switch
keycode 32 = o O Odiaeresis
keycode 30 = u U Udiaeresis
keycode 38 = a A Adiaeresis
keycode 39 = s S ssharp
keycode 54 = c C cent
keycode 26 = e E EuroSign
keycode 24 = q Q degree
linux/keyboard_umlaute.txt · Last modified: 2008/02/03 23:00 by mad
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki