home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!darwin.sura.net!paladin.american.edu!news.univie.ac.at!chx400!sicsun!siisun.epfl.ch!brossard
- From: brossard@siisun.epfl.ch (Alain Brossard EPFL-SIC/SII)
- Newsgroups: comp.sys.sun.misc
- Subject: Re: Sun5PCOW keyboard remapping
- Message-ID: <1992Nov15.220237@siisun.epfl.ch>
- Date: 15 Nov 92 21:02:37 GMT
- References: <1992Nov12.203208.18623@msuinfo.cl.msu.edu>
- Sender: news@sicsun.epfl.ch
- Reply-To: brossard@sic.epfl.ch
- Organization: Ecole Polytechnique Federale de Lausanne
- Lines: 56
-
- In article <1992Nov12.203208.18623@msuinfo.cl.msu.edu>, courtney@phoenix.cps.msu.edu (Jonathan Courtney) writes:
- |>
- |> Does anyone have experience with remapping the Type 5 keyboard under
- |> OpenWindows to swap the CapsLock and Control keys? I do the following
- |> with xmodmap:
- |>
- |> remove Lock = Caps_Lock
- |> remove Control = Control_L
- |>
- |> keycode 0x7E = Control_L
- |> keycode 0x53 = Caps_Lock
- |>
- |> add Lock = Caps_Lock
- |> add Control = Control_L Control_L
- |>
- |> unfortunately, this only works with the Sun5PC (MIT layout) keyboard --
- |> OpenWindows seems to use Sun5PCOW (OpenWindows layout) instead. In this case,
- |> the CapsLock key becomes a Control *toggle*, and the Control key becomes
- |> a regular shift. The "latching" effect stays with the CapsLock key.
- |>
-
- Here's the answer I got from a Sun Engineer, first check out
- $OPENWINHOME/share/etc/keytables
-
- In there you'll find all the keytables you'll need. Here's what
- I ended up doing to fix this problem and do some other things:
-
- 1- copy the keytable of your choice to ~/.keytable
- 2- Modify it! Here's my example:
-
- diff US4.kt ~/.keytable | g -v '< #'
- 78,79c7,8
- < lock 119 # CapsLock
- < control 76 # Control
- ---
- > lock 111 # CapsLock (ex Linefeed
- > control 76 119 # Control (Right: ex-CapsLock
- 264c135
- < 111 RN XK_Linefeed
- ---
- > 111 NP XK_Caps_Lock
- 271,274d141
- 278c145
- < 119 NP XK_Caps_Lock
- ---
- > 119 NN XK_Control_R
-
-
- RN : Repeat, don't lock
- NP : Don't repeat, lockable
-
- --
-
- Alain Brossard, Ecole Polytechnique Federale de Lausanne,
- SIC/SII, EL-Ecublens, CH-1015 Lausanne, Suisse, +41 21 693-2211
- brossard@sic.epfl.ch
-