#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Change your keymap:
xmodmap "/root/.Xmodmap"

#for device in `xrandr -q | grep connected | cut -d" " -f1`; do
#  xrandr --output $device --mode 800x600 --pos 0x0 --rotate normal
#done
# Handle xrandr

XRANDR=`/opt/bin/xrandr_guess`

if [ "$XRANDR" != "" ]; then
  `$XRANDR`
fi

xrandr --output LVDS1 --mode 1600x900 --scale 0.5x0.666 --pos 0x0 --rotate normal

# x11vnc
/usr/bin/x11vnc -notruecolor -norc -forever -scale 800x600 -geometry 800x600 -bg -display :0

# unclutter -idle 0 &
xset s blank
xset s 30

##COORDINATES##

# run pos
/opt/pos/common/bin/run_pos.sh &

exec fluxbox


