#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

export LD_LIBRARY_PATH=/usr/local/lib

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=<X_LIBRARIES>/X11/xinit/.Xresources
sysmodmap=<X_LIBRARIES>/X11/xinit/.Xmodmap

# 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

#exec twm &
# put at end as last thing in this file

source ~/.glinaccess.sourceme

#x10 # x10 doesn't work properly with vi, etc..
x20
x30
x40
x80
# x40 or something similar at +0+0 must be present

#xclock -geometry -0+0
#oclock -geometry 300x300-0+0 -bw 100 -fg white -bg white -hour yellow -minute red -transparent

#put something at upper left so that control shift z or alt z goes to zero
###xlogo -geometry 1x1+0+0 &

xhost + localhost
# above is for prevention of the twiddler problem:
# a2x: unable to open display ':0'

source ~/.glinaccess.sourceme

#exec twm &
#exec fvwm &

#the following would really like to be in the background to make it easy to change window managers, but unfortunately this no longer seems to work because we've been deprecated:

#this should really be at the end, in the foreground, but we're deprecated
oc &
exec fvwm2
#exec ctwm &
# need to exec or won't run and stay running

#xc
###oc

# above is last (e.g. to exit X)

