solution: remapping ctrl and caps lock
solution: remapping ctrl and caps lock
- Subject: solution: remapping ctrl and caps lock
- From: Kentaro Nagamine <email@hidden>
- Date: Wed, 10 Sep 2003 08:22:39 -0400 (EDT)
Hi,
Since there was a request from TR to post the solution, here it is,
together with the digest of the thread.
I just tried "uControl" on my laptop (powerbook G4).
It makes the CAPS LOCK key into Ctrl (which is what I want),
but this time, the CAPS went somewhere I don't know!
(The opposite of the xmodmap.)
But I don't really care about the CAPS LOCk key anyway,
so I'll live with this for now....
Thanks to those who replied.
Ken
On Tue, 9 Sep 2003 email@hidden wrote:
>
> Today's Topics:
>
> 1. remapping ctrl and caps key (Kentaro Nagamine)
> 2. Re: remapping ctrl and caps key (email@hidden)
> 3. Re: remapping ctrl and caps key (Jerry Talkington)
> 4. Re: remapping ctrl and caps key (Ted Lemon)
>
> --__--__--
>
> Message: 1
> Date: Tue, 9 Sep 2003 22:23:51 -0400 (EDT)
> From: Kentaro Nagamine <email@hidden>
> To: email@hidden
> cc: email@hidden
> Subject: remapping ctrl and caps key
>
> Hi,
>
> I just got a power book G4, and would like to remap the Ctrl key and
> the Caps lock key under X11. I used to use the following xmodmap script
> to do this on my previous linux laptop (vaio), but on powerbook this
> remapped only the CAPS to the Ctrl correctly, and the Ctrl-key went
> somewhere I don't know. Does anyone know the correct syntax?
> This isn't really x11 specific question, but still a problem under x11, so
> I hope it's ok to ask this here.
> Thanks in advance. -Ken
>
> !
> ! 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
>
> --__--__--
>
> Message: 2
> Date: Tue, 9 Sep 2003 22:40:35 -0400
> Subject: Re: remapping ctrl and caps key
> Cc: email@hidden
> To: Kentaro Nagamine <email@hidden>
> From: email@hidden
>
> Or you might try this:
>
> http://www.versiontracker.com/dyn/moreinfo/macosx/12106
>
> Please post your solution, as I'd like to know how to do what you're
> doing!
>
> TR
>
> On Tuesday, September 9, 2003, at 10:23 PM, Kentaro Nagamine wrote:
>
> > Hi,
> >
> > I just got a power book G4, and would like to remap the Ctrl key and
> > the Caps lock key under X11. I used to use the following xmodmap script
> > to do this on my previous linux laptop (vaio), but on powerbook this
> > remapped only the CAPS to the Ctrl correctly, and the Ctrl-key went
> > somewhere I don't know. Does anyone know the correct syntax?
> > This isn't really x11 specific question, but still a problem under
> > x11, so
> > I hope it's ok to ask this here.
> > Thanks in advance. -Ken
> >
> > !
> > ! 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
>
> --__--__--
>
> Message: 3
> Date: Tue, 9 Sep 2003 19:55:12 -0700
> From: Jerry Talkington <email@hidden>
> To: email@hidden
> Subject: Re: remapping ctrl and caps key
>
> On Tue, Sep 09, 2003 at 10:40:35PM -0400, email@hidden wrote:
> > Or you might try this:
> >
> > http://www.versiontracker.com/dyn/moreinfo/macosx/12106
>
> For changing the keymappings for all applications (including X11,) then
> this (uControl) is the way to go.
>
> >
> > On Tuesday, September 9, 2003, at 10:23 PM, Kentaro Nagamine wrote:
> >
> > >Hi,
> > >
> > >I just got a power book G4, and would like to remap the Ctrl key and
> > >the Caps lock key under X11. I used to use the following xmodmap script
> > >to do this on my previous linux laptop (vaio), but on powerbook this
> > >remapped only the CAPS to the Ctrl correctly, and the Ctrl-key went
> > >somewhere I don't know. Does anyone know the correct syntax?
> > >This isn't really x11 specific question, but still a problem under
> > >x11, so
> > >I hope it's ok to ask this here.
>
> Have you tried running xmodmap from an xterm, to just make sure that
> it's processed?
>
> If so, then you may need to run `xev' to find out which keycodes are
> being sent, then modify the .Xmodmap to correspond to those keys.
>
> --
> GPG public key:
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9D5B8762
>
> --__--__--
>
> Message: 4
> From: Ted Lemon <email@hidden>
> To: Jerry Talkington <email@hidden>,
> email@hidden
> Subject: Re: remapping ctrl and caps key
> Date: Tue, 9 Sep 2003 23:16:13 -0500
>
> On Tuesday 09 September 2003 21:55, Jerry Talkington wrote:
> > Have you tried running xmodmap from an xterm, to just make sure that
> > it's processed?
> >
> > If so, then you may need to run `xev' to find out which keycodes are
> > being sent, then modify the .Xmodmap to correspond to those keys.
>
> The problem is that all Powerbook keyboards are ADB keyboards, which have caps
> lock in firmware. So you can't just hack it with xmodmap - you'll get a
> locking control key. uControl gets around this with cleverness that I
> haven't looked into - probably tracking events it gets from the keyboard.
>
> Oh, for the day when Apple starts using a different keyboard controller in
> their powerbooks. :'}
>
>
> --__--__--
>
> _______________________________________________
> x11-users mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
> X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
> Report issues, request features, feedback: http://developer.apple.com/bugreporter
> Do not post admin requests to the list. They will be ignored.
>
> End of x11-users Digest
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.