From 29a3bfae91ff4843a9ea2cab5b8cd18393fbdbf4 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Mon, 2 Dec 2019 18:03:13 +0300 Subject: Refactor scripts --- scripts/toggle-touchpad.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/toggle-touchpad.sh') diff --git a/scripts/toggle-touchpad.sh b/scripts/toggle-touchpad.sh index 7a82391..449bd5b 100755 --- a/scripts/toggle-touchpad.sh +++ b/scripts/toggle-touchpad.sh @@ -3,7 +3,7 @@ ID=$(xinput list | grep -Eo 'TouchPad\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') STATE=$(xinput list-props "$ID" | awk '/Device Enabled/ {print $4}') -if [ "$STATE" -eq 1 ] +if [ "$STATE" = 1 ] then xinput disable "$ID" else -- cgit 1.4.1