[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I make my caps lock key act like a control key?

From: Chris F.A. Johnson
Subject: Re: How can I make my caps lock key act like a control key?
Date: Wed, 16 Jul 2008 03:40:47 +0000
User-agent: slrn/ (Linux)

On 2008-07-15, emacs615 wrote:
> Hi,
> I am having trouble mapping my caps lock key to control key in my linux
> shell(NOT X). I want both the control and caps lock keys to act like control
> keys.  I've tried using loadkeys and I'm not getting errors, but I can't get
> it to work.  I've used dumpkeys to get a keymap, edited the map to where
> both the caps lock and control keys have the same key code (58 i think).  I
> then load this map with loadkeys and there are no errors but nothing
> happens.  I tried opening a new shell just in case and still no changes have
> occurred.

$ cat ~/.xmodmaprc 

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

$ xmodmap ~/.xmodmaprc

   Chris F.A. Johnson, webmaster         <>
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]