#!/bin/bash

xset dpms 0 0 0
xset -dpms
xset s off
xhost +

if [ -n "$(pgrep electron)" ]; then
  echo "electron is running, exit"
  exit 1
fi

while true; do
 /home/smartix/machine/bin/front-launcher.sh
  sleep 5
done
