[comp.sys.hp] .xmodmaprc file for HP X-window users wanting to use VAX/VMS

bernie@umbc5.umbc.edu (Bernard J. Duffy) (02/22/90)

Being that our site has a DEC VAX/VMS machine that HP workstation
users still use, I found it necessary to make the HP keypad operate
just like it does with a VTxxx terminal.  Below is the  xmodmap 
commands file I use.  Before this there's a weird mapping where I'm
reaching above the keypad to get the PF keys and ignoring the <Enter>
key.  It also, thanks to the code in HP's  man page for  xmodmap,
includes the mapping to switch the <Caps> and <CTRL> keys to the same
layout as the DEC LK201 keyboad (VT[23]..) !  It uses  keysym's so it
can only be executed once (xmodmap -f .xmodmaprc  in .xsession).

-------------- cut here ------------------- .xmodmaprc ----------
! This .xmodmaprc  assumes that we're running with a clear map (BJD 2/20/90)
!
! make Backspace into Delete
keysym BackSpace = Delete
!
!
! Switch the Control-Left with the Caps_Lock keys' functionality
! 1) remove Caps from "Lock" set  2) remove Control_L from Control set
! 3) make Caps_Lock the new Control_L key (keysym Control_L = Caps_Lock)
! 4) make Control_L the new Caps_Lock key (keysym Caps_lock = Control_L)
! 5) add this new "Caps_Lock" key to the Lock    modifier set
! 6) add this new "Control_L" key to the Control modifier set
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
!
! make  F5 into Escape (ie. hit F1 to send an  <esc> character) like VT200
keysym F5 = Escape
!
! Modify the keypad layout to match DEC's VT*** :
!   KP_F1       is "Gold"... set to KP_Multiply (*)
!   KP_F2       is "Help"... set to KP_Divide   (/)
!   KP_F3       is "Find"... set to KP_Plus     (+)
!   KP_F4       is "DelL"... set to KP_Subtract (-)
!   KP_Subtract is "DelW"... set to KP_Enter    (Enter)
keysym KP_Enter     = KP_Subtract
keysym KP_Multiply  = KP_F1
keysym KP_Divide    = KP_F2
keysym KP_Add       = KP_F3
keysym KP_Subtract  = KP_F4
-------------- cut here ------------------- .xmodmaprc ----------

Enjoy, Bernie  (left the comments in fyi sake)

Bernie Duffy   Systems Programmer II | Bitnet    :  BERNIE@UMBC2
Academic Computing - L005e           | Internet  :  BERNIE@UMBC2.UMBC.EDU
Univ. of Maryland, Baltimore County  | UUCP      :  ...!uunet!umbc3!bernie
Baltimore, MD  21228   (U.S.A.)      | W: (301) 455-3231  H: (301) 744-2954