mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
28 lines
548 B
Plaintext
28 lines
548 B
Plaintext
SCREEN=`cat /sys/class/graphics/fb0/modes`
|
|
|
|
XORG_CONF="~/launcher/.xorg.conf"
|
|
if [ -f ~/.lima ]
|
|
then
|
|
XORG_CONF="~/launcher/.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/launcher/.xinitrc -- -xf86config $XORG_CONF -nocursor > /tmp/x.log 2>&1
|
|
sleep 1
|
|
done
|
|
else
|
|
while :
|
|
do
|
|
startx /home/cpi/launcher/.xinitrc hdmi -- -xf86config $XORG_CONF > /tmp/x.log 2>&1
|
|
sleep 1
|
|
done
|
|
fi
|
|
fi
|