PDA

View Full Version : HOW TO: Disable Caps Lock



docbear
Jun 26th 2009, 11:44 AM
Seems advice varies for getting the Caps Lock to completely bugger off. Here is a simple way to make it happen:

Open your Home directory. Click on 'View' and click "show hidden files".

Click on the .kde folder, then click on the Autostart folder.

Right-click on some blank space and select "Create New" then scoot your pointer over to "Text File" and click.

Name the new text file xmodmap and click OK.

Now click on the new 'xmodmap' file and enter this:

#!/bin/bash
xmodmap -e "remove lock = Caps_Lock"

Save the file, then right click on it, slide your pointer down to preferences and click. When the preferences dialog opens, click on the 'Permissions' tab.

Put a check (tick mark) in the "Is executable" box.

Click on OK.

Restart your KDE session (log out, or reboot if you'd rather) and the caps lock is history.

To undo the changes, just delete /home/you/.kde/Autostart/xmodmap and restart KDE

There are other ways to do it, but this works and it don't cost too much to try.

Enjoy!

kubicle
Jun 26th 2009, 12:50 PM
That will definitely work, but I'll add an alternative to the howto anyway :)

For those that would like to remap Caps Lock key to something else, a convenient GUI way is through SystemSettings>Regional&Language>KeyboardLayout>Advanced

Most common remaps are:
1. Esc (for Vim users)
2. Ctrl (for keyboard shortcuts)
3. Backspace (for people prone to typos)

(You can remap with xmodmap as well, but the GUI way is often more convenient/easier)