#!/bin/sh

xinput_calibrator --output-type xinput > /tmp/cal.txt
echo "sleep 3" > /opt/bin/calibrate.sh
cat /tmp/cal.txt | grep "xinput set-int-prop" >> /opt/bin/calibrate.sh
chmod 755 /opt/bin/calibrate.sh
rm -rf /tmp/cal.txt

