Update touchscreen script

This commit is contained in:
Riyyi
2018-03-22 12:50:11 +01:00
parent 6da002d268
commit 421d5a9ca2
+1 -1
View File
@@ -3,7 +3,7 @@
device="04F3200A:00 04F3:2373" device="04F3200A:00 04F3:2373"
state=$(xinput --list-props "$device" | grep "Device Enabled" | sed -nr 's/.*:\t([0-9])/\1/p') state=$(xinput --list-props "$device" | grep "Device Enabled" | sed -nr 's/.*:\t([0-9])/\1/p')
if [ "$state" = "0" ]; then if [ "$state" = "0" ] && [ -z "$1" ]; then
xinput --enable "$device" xinput --enable "$device"
else else
xinput --disable "$device" xinput --disable "$device"