#!/bin/bsh
MODEL=$(cat /proc/device-tree/model)
if echo $MODEL | egrep -q "\-8950"; then
	xinput set-prop "ADS7846 Touchscreen" "libinput Calibration Matrix" -1.05070527 0 1.02480539 0 -1.09707288 1.04046077 0 0 1
elif echo $MODEL | egrep -q "\-8390"; then
	xinput set-prop "ADS7843 Touchscreen" "libinput Calibration Matrix" -1.04718565 0 1.02536149 0 -1.092512 1.05010376 0 0 1
elif echo $MODEL | egrep -q "\-7990"; then
	xinput set-prop "ADS7846 Touchscreen" "libinput Calibration Matrix" -1.0515863 0 1.02480729 0 -1.12352838 1.05727788 0 0 1
fi
