On Tue, Nov 8, 2011 at 8:49 PM, Jonathan Thornburg
<jth...@astro.indiana.edu> wrote:
> I've just installed 5.0/amd64 (from the CD set) on a Lenovo Thinkpad T60
> laptop (dmesg below).  I'm not running xdm; I normally use this system
> by logging in at the console, then typing "startx&;logout" to start X.
> My .xinitrc (given in full below) contains (among other things) the
> section
>
> # make Caps Lock key be another control key
> xmodmap - <<'EOF'
> remove Lock = Caps_Lock
> add Control = Caps_Lock
> !! Swap Caps_Lock and Control_L (adapted from the xmodmap(1) man page)
> !!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
> EOF
>
> to make the "Caps Lock" key be a(nother) control key.  For OpenBSD 4.9
> and earlier (on both this and other laptops), this worked fine.  But as
> of my newly-installed 5.0-release, this seems to be a no-op: "Caps Lock"
> stays a caps-lock key.
>
> My basic question is, what's wrong and what can/should I do about it?

You also need to change the keysym on the key and not just the
modifier.  I.e., your xmodmap input needs to be:

remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add control = Control_L



Philip Guenther

Reply via email to