2010年11月2日火曜日

changing caps-lock to ctrl on opensuse 11.3

after some trial-and-err, one workable solution is:

1. create a file .Xmodmap in home directory ~/ with the following lines:

keycode 66 = Control_L
clear Lock
add Control = Control_L
keycode 117 = Caps_Lock
add Lock = Caps_Lock

2. that's it. turns out .Xmodmap will run automatically at login. see scripts in /usr/X11.

0 件のコメント: