diff --git a/scripts/pyra-touchscreen-calibrate.sh b/scripts/pyra-touchscreen-calibrate.sh new file mode 100755 index 0000000000000000000000000000000000000000..2c269bccea1be3393af1db3665bb018b108d2e8f --- /dev/null +++ b/scripts/pyra-touchscreen-calibrate.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +CAL="$(xinput_calibrator | sed -n '/Section/,/EndSection/p')" + +if [ -z "$CAL" ] +then + echo "Calibration canceled." + exit 1 +fi + +echo "$CAL" > /etc/X11/xorg.conf.d/99-pyra-touchscreen.conf + +exit 0 +