#! /bin/sh
# The RC required by the xinit

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge -nocpp $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge -nocpp $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

CURRENTWM="icewm-session"

xset fp+ /usr/X11R6/lib/X11/fonts/Type1

# Setup mouse acceleration
# xset m 7 2

xsetroot -cursor_name top_left_arrow

exec $CURRENTWM

###END###
