# -+- number -+- category -+- title -+- email -+- name -+- homepage -+- clickOnName -+- language -+- image -+- browser-used -+- security-cookie
=0 -+- 2001-05-13:1 -+- UNIX Basics -+- Swapping CTRL key with CAPS_LOCK key (X11 and console mode) -+- furlan at telocity dot com -+- Igor -+- -+- email -+- English -+- -+- Mozilla/4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) -+- 5354
X11 environment:
Enter into /etc/X11/XF86Config (REDHAT 6.2) the following line:
Section "Keyboard"
XkbOptions "ctrl:swapcaps"
EndSection
Console
The solution from above does not swap keys in console
Here is the solution for console:
You have to modify the file "us.kmap.gz"
(if you use US keyboard maping)
keycode 58 = Caps_Lock
to
keycode 58 = Control
AND from
keycode 29 = Control
to
keycode 29 = Caps_Lock
And life is nice again :)))
file "us.kmap.gz" is here (REDHAT 6.2)
/usr/lib/kbd/keymaps/i386/qwerty