.cpirc 492 B

12345678910111213141516171819
  1. SCREEN=`cat /sys/class/graphics/fb0/modes`
  2. XORG_CONF="/home/cpi/launcher/.xorg.conf"
  3. if [ -f ~/.lima ]
  4. then
  5. XORG_CONF="/home/cpi/launcher/.xorg_lima.conf"
  6. fi
  7. if [ -f /tmp/autologin ]
  8. then
  9. rm -f /tmp/autologin
  10. mpd ~/.mpd.conf
  11. if [[ $SCREEN =~ .*320.* ]]
  12. then
  13. startx /home/cpi/launcher/.xinitrc -- -xf86config $XORG_CONF -nocursor > /tmp/x.log 2>&1
  14. else
  15. startx /home/cpi/launcher/.xinitrc hdmi -- -xf86config $XORG_CONF > /tmp/x.log 2>&1
  16. fi
  17. fi