#!/bin/sh
# make adjustments to X when appropriate
if [ -x /usr/bin/nvidia-settings ]; then
	if [ -e $HOME/.nvidia-settings-rc ]; then
		/usr/bin/nvidia-settings -l 2>/dev/null&
	fi
fi
sleep 1
if [ -x $HOME/.xprofile ]; then
	sh $HOME/.xprofile 2>/dev/null&
fi
# make any user gamma adjustments
if [ -x $HOME/.absgammarc ]; then
    $HOME/.absgammarc 2>/dev/null&
fi
if [ -x /usr/bin/pulseaudio ]; then
	start-pulseaudio-x11 2>/dev/null&
fi
if [ -x /usr/bin/qasmixer ]; then
	/usr/bin/qasmixer -t 2>/dev/null&
fi
if [ -x /usr/bin/nm-applet ]; then
	nm-applet 2>/dev/null&
fi
BAT=`acpi | grep "Battery"`
if [[ $BAT == Battery* ]]; then
	/usr/bin/cbatticon 2>/dev/null&
fi
if [ -x $HOME/.icewm/rc.mail ]; then
	/usr/local/bin/imapquickcheck 2>/dev/null&
fi
if [ -x /usr/bin/clipit ]; then
	/usr/bin/clipit -d 2>/dev/null&
fi
if [ -x /usr/libexec/arox/arox ]; then
	/usr/libexec/arox/arox --pinboard Default
fi
sleep 4
if [ -x $HOME/.icewm/rc.calendar ]; then
	/usr/bin/orage 2>/dev/null&
fi
if [ -x /usr/libexec/polkit-gnome-authentication-agent-1 ]; then
	/usr/libexec/polkit-gnome-authentication-agent-1 &
fi
if [ -x /usr/bin/udiskie ]; then
	/usr/bin/udiskie -c "/etc/udiskie.yml" &
fi
