#!/bin/sh # $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $ userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/usr/X11R6/lib/X11/xinit/.Xresources sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap # # get the screen size # size=`xdpyinfo | grep dimensions | awk '{print "SIZE"$2;}'` # merge in defaults and keymaps if [ -f $sysresources ]; then xrdb -merge $sysresources fi if [ -f $sysmodmap ]; then xmodmap $sysmodmap fi if [ -f $userresources ]; then xrdb -merge $userresources fi if [ -f $usermodmap ]; then xmodmap $usermodmap fi # start some nice programs # # set screen saver # xset s 300 xset s on # # for X font server # FONTSERVER=localhost:7100 ; export FONTSERVER # wait for startup xfs XFSINFO=/usr/X11R6/bin/fsinfo echo checking xfs ... $XFSINFO > /dev/null 2>&1 # at first time, xfs always failure. if $XFSINFO > /dev/null 2>&1 ; then echo xfs ok. prepend xfs to font path. xset +fp tcp/localhost:7100 xset fp rehash else echo xfs is not running. unset FONTSERVER ; export FONTSERVER fi # # kanji input with kterm / elvis # kinput2 -xim +kinput +ximp & XMODIFIERS='@im=kinput2' ; export XMODIFIERS # unset XMODIFIERS ; export XMODIFIERS # xclock -geometry 50x50-1+1 & # kterm -C -geometry +0+0 -name console & # for display console message # kterm -geometry +0-0 & # for qvwm # kterm -geometry +0-40 & # for fvwm95 # mule -geometry -0+0 & # # start window manager # # twm & # fvwm95 & qvwm & # # size dependece programs in here... # if [ x$size = xSIZE640x480 ]; then # kterm -geometry 80x25+0+0 -name login & fi if [ x$size = xSIZE800x600 ]; then # kterm -geometry 80x36+0+0 -name login & fi if [ x$size = xSIZE1024x768 ]; then # kterm -geometry 80x36+0+0 -name login & fi if [ x$size = xSIZE1280x1024 ]; then # kterm -geometry 80x40+0+0 -name login & # xsysinfo -geometry +600+870 & fi # # for display console message # kterm -C -geometry -0+0 -name console +xim & #xconsole -geometry 500x300-0+0 -name console & # # exec program. # if you exit below program, X Window System ends. # # kterm -geometry +80+0 -name login +xim # no support xim kterm -geometry +80+0 -name login