1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
XCOMM!SHELL_CMD
XCOMM $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=XINITDIR/.Xresources
sysmodmap=XINITDIR/.Xmodmap
XCOMM merge in defaults and keymaps
if [ -f $sysresources ]; then
#ifdef __APPLE__
if [ -x /usr/bin/cpp ] ; then
XRDB -merge $sysresources
else
XRDB -nocpp -merge $sysresources
fi
#else
XRDB -merge $sysresources
#endif
fi
if [ -f $sysmodmap ]; then
XMODMAP $sysmodmap
fi
if [ -f $userresources ]; then
#ifdef __APPLE__
if [ -x /usr/bin/cpp ] ; then
XRDB -merge $userresources
else
XRDB -nocpp -merge $userresources
fi
#else
XRDB -merge $userresources
#endif
fi
if [ -f $usermodmap ]; then
XMODMAP $usermodmap
fi
XCOMM start some nice programs
#if defined(__SCO__) || defined(__UNIXWARE__)
if [ -r /etc/default/xdesktops ]; then
. /etc/default/xdesktops
fi
if [ -r $HOME/.x11rc ]; then
. $HOME/.x11rc
else
if [ -r /etc/default/X11 ]; then
. /etc/default/X11
fi
fi
#if defined(__SCO__)
if [ -n "$XSESSION" ]; then
case "$XSESSION" in
[Yy][Ee][Ss])
[ -x /usr/bin/X11/scosession ] && exec /usr/bin/X11/scosession
;;
esac
fi
if [ -n "$XDESKTOP" ]; then
exec `eval echo $"$XDESKTOP"`
else
if [ -x /usr/bin/X11/pmwm -a -x /usr/bin/X11/scoterm ]; then
/usr/bin/X11/scoterm 2> /dev/null &
exec /usr/bin/X11/pmwm 2> /dev/null
fi
fi
#elif defined(__UNIXWARE__)
if [ -n "$XDESKTOP" ]; then
exec `eval echo $"$XDESKTOP"`
else
if [ -x /usr/X/bin/pmwm ]; then
exec /usr/X/bin/pmwm 2> /dev/null
fi
fi
#endif
XCOMM This is the fallback case if nothing else is executed above
#endif /* !defined(__SCO__) && !defined(__UNIXWARE__) */
#ifdef __APPLE__
if [ -x /usr/X11/bin/xset ] ; then
fontpath="/usr/X11/lib/X11/fonts/misc/,/usr/X11/lib/X11/fonts/TTF/,/usr/X11/lib/X11/fonts/OTF,/usr/X11/lib/X11/fonts/Type1/,/usr/X11/lib/X11/fonts/75dpi:unscaled/,/usr/X11/lib/X11/fonts/100dpi/:unscaled,/usr/X11/lib/X11/fonts/75dpi:unscaled/,/usr/X11/lib/X11/fonts/100dpi/:unscaled"
[ -e "$HOME"/.fonts/fonts.dir ] && fontpath="$fontpath,$HOME/.fonts"
[ -e "$HOME"/Library/Fonts/fonts.dir ] && fontpath="$fontpath,$HOME/Library/Fonts"
[ -e /Library/Fonts/fonts.dir ] && fontpath="$fontpath,/Library/Fonts"
[ -e /System/Library/Fonts/fonts.dir ] && fontpath="$fontpath,/System/Library/Fonts"
/usr/X11/bin/xset fp= "$fontpath"
unset fontpath
fi
[ -x /usr/bin/quartz-wm ] && exec /usr/bin/quartz-wm
#endif
TWM &
XCLOCK -geometry 50x50-1+1 &
XTERM -geometry 80x50+494+51 &
XTERM -geometry 80x20+494-0 &
exec XTERM -geometry 80x66+0+0 -name login
|