#!/bin/sh

cd `dirname "$0"`

python -m SimpleHTTPServer &

# hide mousepointer
export DISPLAY=:0
sleep 5
#xrandr  --output HDMI-0 --right-of DP-0 --rotate left
#sleep 5

# disable screen saver
xset s off
xset -dpms 


chromium-browser --disable-infobars --incognito --use-fake-ui-for-media-stream --user-data-dir=chromium_tmp --disable-gpu-sandbox http://127.0.0.1:8000/index.html &
sleep 5
xdotool getactivewindow windowmove 0 -100 windowsize 2390 1566
xdotool getactivewindow windowmove 0 -100 windowsize 2390 1566
xdotool mousemove 1920 1080

fg
