2 XCOMM ####################################################################
3 XCOMM ## File: 0050.dtxmodmap
5 XCOMM ## Default Location: CDE_INSTALLATION_TOP/config/Xsession.d/
7 XCOMM ## Purpose: Perform keyboard mapping
10 XCOMM ## This script is invoked by means of the Xsession file
11 XCOMM ## at user login. It invokes xmodmap to setup the
12 XCOMM ## keyboard mapping required for selected locales.
14 XCOMM ## Invoked by: CDE_INSTALLATION_TOP/bin/Xsession
16 XCOMM ## Product: @(#)Common Desktop Environment 1.0
20 XCOMM ## The CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap file is a
21 XCOMM ## factory-default file and will be unconditionally overwritten upon
22 XCOMM ## subsequent installation. To customize keyboard mapping
23 XCOMM ## behavior, copy this file to the configuration directory,
24 XCOMM ## CDE_CONFIGURATION_TOP/config/Xsession.d and customize that version
27 XCOMM ## Revision: $XConsortium: 0050.dtxmodmap.src /main/5 1996/07/18 15:26:04 drk $
29 XCOMM ## (c) Copyright 1993, 1994 Hewlett-Packard Company
30 XCOMM ## (c) Copyright 1993, 1994 International Business Machines Corp.
31 XCOMM ## (c) Copyright 1993, 1994 Sun Microsystems, Inc.
32 XCOMM ## (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
35 XCOMM ####################################################################
38 XCOMM Determine the xmodmap keyboard to be used.
41 sys_version=`uname -v`
42 if [ "$sys_version" = "3" ]
49 if [ ${DISPLAY%.*} = ":0" ]
53 XDIR=/usr/lpp/X11/defaults/xmodmap
55 KBD_LANG=`/usr/lpp/X11/bin/querykbd`
57 if [ "$KBD_LANG" = "NULL" ]
59 dspmsg $XINITRCMSG/xinit.cat 2 'xinit: Odm keyboard id is NULL.\n'
61 if [ "$KBD_LANG" != "$Cname" ]
63 if [ -r $IMKEYMAPPATH/$KBD_LANG/keyboard ]
65 KBD=$IMKEYMAPPATH/$KBD_LANG/keyboard
67 if [ "$IMKEYMAPPATH" = "/usr/lib/nls/im.alt" ]
69 if [ "$sys_version" = "3" /
70 -a -r $XDIR/$KBD_LANG/keyboard.alt ]
72 KBD=$XDIR/$KBD_LANG/keyboard.alt
74 if [ -r $XDIR/${KBD_LANG}@alt/keyboard ]
76 KBD=$XDIR/${KBD_LANG}@alt/keyboard
82 if [ -r $XDIR/$KBD_LANG/keyboard ]
84 KBD=$XDIR/$KBD_LANG/keyboard
94 if [ "$IMKEYMAPPATH" = "/usr/lib/nls/im.alt" ]
96 if [ "$sys_version" = "3" /
97 -a -r $XDIR/$KBD_LANG/keyboard.alt ]
99 xmodmap $XDIR/$KBD_LANG/keyboard.alt
102 if [ -r $XDIR/${KBD_LANG}@alt/keyboard ]
104 xmodmap $XDIR/${KBD_LANG}@alt/keyboard
108 if [ -r $XDIR/$LANG/keyboard ]
110 xmodmap $XDIR/$LANG/keyboard
115 XCOMM ######################### eof #####################