#!/bin/sh

# (tpg) auto choose one of graphics cards
/usr/bin/xrandr --auto ||: > /dev/null 2>&1

if [ -x /etc/X11/xinit/fixkeyboard ]; then
    /etc/X11/xinit/fixkeyboard
fi

if [ -x /etc/X11/xinit.d/numlock ]; then
    /etc/X11/xinit.d/numlock &
fi

for i in /etc/X11/xsetup.d/*.xsetup ; do
    [ -d $i ] && continue

    if [ -x $i ]; then
	if grep -q "# to be sourced" $i; then
	    . $i
	else
	    $i &
	fi
    fi
done

# Xsetup_0 ends here
