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

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

xinput set-int-prop "07U0196 USB TouchController" "Evdev Axis Calibration" 32 1873 151 152 1881

xinput set-int-prop "07U0196 USB TouchController" "Evdev Axis Inversion" 8 1 1
xinput set-int-prop "07U0196 USB TouchController" "Evdev Axes Swap" 8 1

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

exec fluxbox


