launchergo/.cpirc
2023-01-05 00:37:06 +00:00

28 lines
612 B
Plaintext

SCREEN=`cat /sys/class/graphics/fb0/modes`
XORG_CONF="/home/cpi/launchergo/.xorg.conf"
if [ -f /home/cpi/.lima ]
then
XORG_CONF="/home/cpi/launchergo/.xorg_lima.conf"
fi
if [ -f /tmp/autologin ]
then
rm -f /tmp/autologin
mpd ~/.mpd.conf
if [[ $SCREEN =~ .*320.* ]]
then
while :
do
startx /home/cpi/launchergo/.xinitrc -- -xf86config $XORG_CONF -nocursor -logfile /tmp/xorg.log > /tmp/x.log 2>&1
sleep 1
done
else
while :
do
startx /home/cpi/launchergo/.xinitrc hdmi -- -xf86config $XORG_CONF -logfile /tmp/xorg.log > /tmp/x.log 2>&1
sleep 1
done
fi
fi