From 421d5a9ca2d050b13aa2efbdee1c0aee413bc260 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 22 Mar 2018 12:50:11 +0100 Subject: [PATCH] Update touchscreen script --- .scripts/touchscreen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/touchscreen.sh b/.scripts/touchscreen.sh index 3d43ce4..97e4247 100755 --- a/.scripts/touchscreen.sh +++ b/.scripts/touchscreen.sh @@ -3,7 +3,7 @@ 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 +if [ "$state" = "0" ] && [ -z "$1" ]; then xinput --enable "$device" else xinput --disable "$device"