On Thu, Feb 25, 2010 at 9:28 AM, Rich Shepard <[email protected]> wrote:
> Andrew,
>
>   I've always liked the ctrl key to be at the left end of the home key line
> since 1) that's where it was way back when microcomputer keyboards first
> came out and b) I use that much more frequently than I do the capslock key.
> (The latter is good only for the name of a character in John Sandford
> novels: Del Capslock.)
>
>   So, ... at the end of ~/.bash_profile I have:
>
> loadkeys ~/.keymap
>
> and ~/.keymap contains:
>
> # Created 12 July 2002 by Rich Shepard
> #
> # Exchange the left Control key and the Caps Lock key on the keyboard
> keymaps 0-2,4-6,8-9,12
> keycode 58 = Control
> keycode 29 = Caps_Lock
>
>   This works well for console mode. Then, when I'm working in X, in
> ~/.xinitrc is the line:
>
> $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
>
> where .Xmodmap contains:
>
> clear mod4
> !
> ! Swap Caps_Lock and Control_L
> !
> remove Lock = Caps_Lock
> remove Control = Control_L
> keysym Control_L = Caps_Lock
> keysym Caps_Lock = Control_L
> add Lock = Caps_Lock
> add Control = Control_L
> keysym Alt_L = Meta_L Alt_L
>
>   Both the above have worked well for me for years, regardless of keyboard
> used. Currently, my keyboard is a mini (same size as on my notebook) from
> Fry's for $15. Takes little room and is highly efficient.
>

Hey, Rich,

Thanks for this tip on xmodmap - previously I didn't get as far as
actually using the xmodmap command, only swapping my .Xmodmap files.
Eeeenteresting.

Del Capslock, eh?  Hrm.  I haven't read John Sandford.  Lately my book
spice has been Iain M. Banks.  Spaceships, lasers, aliens - that kind
of stuff.

Also - about the Caps Lock key.  That's like the greatest swapping key
ever.  I swap it with Escape, since I code a lot in Vim.

Andrew
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to