#!/bin/ksh # @(#)57 1.8 com/XTOP/aixclients/xinit/xinitrc.cpp, gos, x11r5 7/31/92 16:03:38 # # COMPONENT_NAME: X11 xinit # # FUNCTIONS: .xinitrc # # ORIGINS: 27 # # (C) COPYRIGHT International Business Machines Corp. 1990, 1992 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # This script is invoked by /usr/lpp/X11/bin/xinit #*********************************************************** # HINT: For XDM users. It would be useful for you to set # your PATH in your shell's configuration file (ie, # kshrc, or cshrc). This will allow clients started # within your XINITRC script to have the proper user # environment. Korne shell users should remember to # set ENV=$HOME/.kshrc in their .profile file. #*********************************************************** #*********************************************************** # start xclock then sleep 1 to make sure it can get started. #*********************************************************** xclock -geometry -0+0 -fg DarkSlateBlue -bg LemonChiffon -hd DarkSlateBlue -hl LemonChiffon & sleep 1 #**************************************************************** # # Set the X server's keyboard keysyms to the match the # engravings of the user's keyboard. # # - Querying odm (querykbd) to get keyboard id (e.g. En_US). # # - If querykbd returns NULL or there is no keyboard file found, # then the environment variable $LANG is used for the keymap. # # Don't remap keybaord if this is an Xstation # #***************************************************************** #if [ -z "$XSTATION" ] #then # KBD="" # XDIR=/usr/lpp/X11/defaults/xmodmap # # if [ -r $HOME/.Xkeyboard ] # then # KBD=$HOME/.Xkeyboard # else # KBD_LANG=`/usr/lpp/X11/bin/querykbd` # # if [ "$KBD_LANG" = "NULL" ] # then # dspmsg $MSG/xinit.cat 26 '1356-825 xinit: Failed to query omd for keyboard id\n' # else # if [ "$KBD_LANG" != "C.hft" ] # then # if [ -r $IMKEYMAPPATH/$KBD_LANG/keyboard ] # then # KBD=$IMKEYMAPPATH/$KBD_LANG/keyboard # else # if [ "$IMKEYMAPPATH" = "/usr/lib/nls/im.alt" \ # -a -r $XDIR/$KBD_LANG/keyboard.alt ] # then # KBD=$XDIR/$KBD_LANG/keyboard.alt # else # if [ -r $XDIR/$KBD_LANG/keyboard ] # then # KBD=$XDIR/$KBD_LANG/keyboard # fi # fi # fi # fi # fi # fi # if [ "$KBD" != "" ] # then # xmodmap $KBD # else # if [ "$IMKEYMAPPATH" = "/usr/lib/nls/im.alt" \ # -a -r $XDIR/$LANG/keyboard.alt ] # then # xmodmap $XDIR/$LANG/keyboard.alt # else # if [ -r $XDIR/$LANG/keyboard ] # then # xmodmap $XDIR/$LANG/keyboard # fi # fi # fi #fi # #**************************************************************** # # Start the X clients. Change the following lines to # whatever command(s) you desire! #**************************************************************** #set the default background color xsetroot -solid black # Start some xterms - choose size,location and colors xterm -g 80x25+0-0 -bg black -fg white & xterm -g 60x10+0+0 -bg yellow -fg black & if [ -z "$XSTATION" ] then sleep 1 # allow time for DPS copyright to showup fi # Start the Motif Window Manager exec mwm