From b128c5303a8ed4b610f7a0d97c45241959fd5008 Mon Sep 17 00:00:00 2001 From: aTc Date: Sat, 30 Jun 2018 00:19:35 +0200 Subject: [PATCH] added pyra-touchscreen-calibrate.sh --- scripts/pyra-touchscreen-calibrate.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/pyra-touchscreen-calibrate.sh diff --git a/scripts/pyra-touchscreen-calibrate.sh b/scripts/pyra-touchscreen-calibrate.sh new file mode 100755 index 0000000..2c269bc --- /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 + -- GitLab