home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sun / misc / 5276 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  2.3 KB

  1. 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
  2. From: brossard@siisun.epfl.ch (Alain Brossard EPFL-SIC/SII)
  3. Newsgroups: comp.sys.sun.misc
  4. Subject: Re: Sun5PCOW keyboard remapping
  5. Message-ID: <1992Nov15.220237@siisun.epfl.ch>
  6. Date: 15 Nov 92 21:02:37 GMT
  7. References: <1992Nov12.203208.18623@msuinfo.cl.msu.edu>
  8. Sender: news@sicsun.epfl.ch
  9. Reply-To: brossard@sic.epfl.ch
  10. Organization: Ecole Polytechnique Federale de Lausanne
  11. Lines: 56
  12.  
  13. In article <1992Nov12.203208.18623@msuinfo.cl.msu.edu>, courtney@phoenix.cps.msu.edu (Jonathan Courtney) writes:
  14. |> 
  15. |>   Does anyone have experience with remapping the Type 5 keyboard under
  16. |> OpenWindows to swap the CapsLock and Control keys?  I do the following
  17. |> with xmodmap:
  18. |> 
  19. |> remove Lock    = Caps_Lock
  20. |> remove Control = Control_L
  21. |>  
  22. |> keycode 0x7E =  Control_L
  23. |> keycode 0x53 =  Caps_Lock
  24. |>  
  25. |> add    Lock    = Caps_Lock
  26. |> add    Control = Control_L Control_L
  27. |> 
  28. |>   unfortunately, this only works with the Sun5PC (MIT layout) keyboard --
  29. |> OpenWindows seems to use Sun5PCOW (OpenWindows layout) instead.  In this case,
  30. |> the CapsLock key becomes a Control *toggle*, and the Control key becomes
  31. |> a regular shift.  The "latching" effect stays with the CapsLock key.
  32. |> 
  33.  
  34.   Here's the answer I got from a Sun Engineer, first check out
  35. $OPENWINHOME/share/etc/keytables
  36.  
  37.    In there you'll find all the keytables you'll need.  Here's what
  38. I ended up doing to fix this problem and do some other things:
  39.  
  40.     1- copy the keytable of your choice to ~/.keytable
  41.     2- Modify it!  Here's my example:
  42.  
  43. diff US4.kt ~/.keytable | g -v '< #'
  44. 78,79c7,8
  45. < lock  119                     # CapsLock
  46. < control        76                     # Control
  47. ---
  48. > lock  111                     # CapsLock (ex Linefeed
  49. > control        76 119                 # Control (Right: ex-CapsLock
  50. 264c135
  51. < 111   RN      XK_Linefeed
  52. ---
  53. > 111   NP      XK_Caps_Lock
  54. 271,274d141
  55. 278c145
  56. < 119   NP      XK_Caps_Lock
  57. ---
  58. > 119   NN      XK_Control_R
  59.  
  60.  
  61.       RN  : Repeat, don't lock
  62.       NP  : Don't repeat, lockable
  63.  
  64. -- 
  65.  
  66. Alain Brossard, Ecole Polytechnique Federale de Lausanne,
  67.     SIC/SII, EL-Ecublens, CH-1015 Lausanne, Suisse, +41 21 693-2211
  68. brossard@sic.epfl.ch
  69.