! keymap/sun-type5 --- xmodmap for type 5 Sun keyboards
! Author: Noah Friedman <friedman@prep.ai.mit.edu>
! Created: 1994-10-04
! Public domain

! $Id: sun-type5,v 1.5 1997/08/07 03:10:06 friedman Exp $

! Make backspace act as Delete.
keycode 50 = Delete

! Note that although you can simply move keysyms onto different modifiers,
! this may confuse some programs which look at the keysym to decide what to
! do.  You must actually assign the canonical keysym to the keycode you
! want to generate it.  Can we *please* get a real window system?

! Solaris 2.x defines this by default; we must remove it or programs
! like XEmacs will conclude that Meta_R is nonsensical because it's on
! multiple modifier maps, and just ignore it.
remove mod4 = Meta_R

! Make alt_l key (keycode 26) act as meta
remove mod1 = Meta_R
keycode 26 = Meta_R
add mod1 = Meta_R

! Make caps lock key (keycode 126) act as Meta_L
! This is easier for me to press than the real meta_l (keycode 127, the
! diamond-shaped key on the left)
!remove lock = Caps_Lock
remove mod1 = Meta_L
keycode 126 = Meta_L
add mod1 = Meta_L

! Make `Copy' (L6 or F16 key) act as meta
add mod1 = F16

! Make sure nothing is on the lock modifier.
! Caps Lock must be destroyed.
clear lock

! Numeric keypad frobs
! Damned X servers (openwin, R5, and R6) all fail to honor the numlock key.

! It is not strictly necessary to remap these, but some programs
! (e.g. xterm) do not do anything with these keysyms.
keycode 53  = slash
keycode 54  = asterisk
keycode 78  = minus
keycode 132 = plus
keycode 97  = Return
keycode 57  = period

keycode 101 = 0
keycode 119 = 1
keycode 120 = 2
keycode 121 = 3
keycode 98  = 4
keycode 99  = 5
keycode 100 = 6
keycode 75  = 7
keycode 76  = 8
keycode 77  = 9

! sun-type5 ends here
