mirror of
https://github.com/clockworkpi/launchergo.git
synced 2025-12-12 18:28:57 +01:00
20 lines
500 B
Plaintext
20 lines
500 B
Plaintext
SCREEN=`cat /sys/class/graphics/fb0/modes`
|
|
|
|
XORG_CONF="/home/cpi/launchergo/.xorg.conf"
|
|
if [ -f ~/.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
|
|
startx /home/cpi/launchergo/.xinitrc -- -xf86config $XORG_CONF -nocursor > /tmp/x.log 2>&1
|
|
else
|
|
startx /home/cpi/launchergo/.xinitrc hdmi -- -xf86config $XORG_CONF > /tmp/x.log 2>&1
|
|
fi
|
|
fi
|