From c27d9555fe988995f1e66a256ca6255b559b279d Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 7 Feb 2018 13:16:12 +0100 Subject: [PATCH] Fix touchscreen toggle script --- .scripts/touchscreen.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scripts/touchscreen.sh b/.scripts/touchscreen.sh index 7b0b3ff..3d43ce4 100755 --- a/.scripts/touchscreen.sh +++ b/.scripts/touchscreen.sh @@ -4,8 +4,8 @@ device="04F3200A:00 04F3:2373" state=$(xinput --list-props "$device" | grep "Device Enabled" | sed -nr 's/.*:\t([0-9])/\1/p') if [ "$state" = "0" ]; then - xinput set-prop "$device" 140 1 + xinput --enable "$device" else - xinput set-prop "$device" 140 0 + xinput --disable "$device" fi