djwhitt.com/blog

Remapping Capslock

with 2 comments

Despite its uselessness Capslock takes up some pretty prime realestate on the keyboard. Control, on the other hand, though extremely useful, languishes in the corners. To help fight this injustice I remap Capslock to Control.

For the console on Gentoo I put the following in /usr/share/keymap/i386/include/nocaps.map (I also gzip the file but you don’t have to):

keycode 58 = Control

and add the following to /etc/conf.d/keymaps:

EXTENDED_KEYMAPS="nocaps"

For X I add the following to my ~/.Xmodmap (which I load using xmodmap in my .xinitrc):

remove Lock = Caps_Lock
remove Control = Control_L
keysym Caps_Lock = Control_L
add Control = Control_L

On Windows I use SysInternals excellent Ctrl2cap utility.

Written by djwhitt

July 18th, 2008 at 6:46 pm

Posted in Gentoo, Linux, Windows

2 Responses to 'Remapping Capslock'

Subscribe to comments with RSS or TrackBack to 'Remapping Capslock'.

  1. On windows, I use AutoHotKey as I’ve already loaded that to make windows have a more sane UI.

    I take you keep your right Control for keys on the left side of your keyboard? That asymmetry hasn’t caused any issues?

    Patrick

    19 Jul 08 at 1:30 am

  2. Nope, the asymetry hasn’t bothered me. Though, I think I tend to use left Control for almost everything.

    djwhitt

    19 Jul 08 at 3:50 am

Leave a Reply