On Sun, Jul 14, 2002 at 08:41:22PM -0700, Todd A. Jacobs wrote:
> I'm trying to map my Caps Lock key to Control using xmodmap. I want to 
> have *both* Caps_Lock and Control_L perform the same function.
> 
> I have added the following to /etc/X11/Xmodmap:
> 
>       clear Lock
>       add Lock = Control_L

I mapped it to Tab like:

 keycode 66 = Tab
 clear lock

I saved this from somewhere. Maybe you can ferret out the right
pieces since it is close to what you want:

! 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

> which prevents Caps_Lock from locking caps, but doesn't seem to actually 
> treat the key as the left control key, which is what I expected. What am I 
> doing wrong here?
> 
> Also, is there a way to merge the updated mappings into a running X 
> session without having to restart X?

xmodmap ~/.Xmodmap (or whatever file you have this in). 

-- 
Hal Burgiss
 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to