I have just spent far more time than I should discovering the correct way to disable my caps lock key on GNOME with Linux. So here is the secret sauce: The command you need to run is xmodmap -e "remove lock = Caps_Lock" which you can place in your ~/.profile, which is usually run as part of the {k,g,x}dm startup scripts (although your mileage may vary depending on how your system is set up). Thanks to Peter for the tip In Ubunto 6.10 (and above) using GNOME GDM there is a better way. Create a file called ~/.Xmodmap that contains the text remove lock = Caps_Lock and restart X. This should work in other distros using GNOME, I examined the file /etc/gdm/Xsession to locate this information, there may be a KDE equivalent. When switching from GNOME to Xfce the setting is also picked up. Update June 2008 -- tested on Hardy Heron 8.04 and works as discussed. Gnome now asks you to confirm that you want the .Xmodmap used the first time, then it's automatic. In MS Windows there are various registry files to accomplish the same task -- just ask Google, but inspect any registry file you download in a text editor to make sure it looks like it's only doing what it's supposed to.

powered by performancing firefox