#!/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

xrandr --output LVDS1 --mode 1024x768 --scale 0.78x0.78 --pos 0x0 --panning 800x600 --rotate normal

xinput set-prop $DEVICE --type=float "Coordinate Transformation Matrix" 0.78 0 0 0 0.78 0 0 0 1

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

##COORDINATES##

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

exec fluxbox


