Fix touchscreen toggle script

This commit is contained in:
Riyyi
2018-02-07 13:16:12 +01:00
parent 4320fc30ba
commit c27d9555fe
+2 -2
View File
@@ -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') state=$(xinput --list-props "$device" | grep "Device Enabled" | sed -nr 's/.*:\t([0-9])/\1/p')
if [ "$state" = "0" ]; then if [ "$state" = "0" ]; then
xinput set-prop "$device" 140 1 xinput --enable "$device"
else else
xinput set-prop "$device" 140 0 xinput --disable "$device"
fi fi