about summary refs log tree commit diff
path: root/scripts/toggle-touchpad.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/toggle-touchpad.sh')
-rwxr-xr-xscripts/toggle-touchpad.sh2
1 files changed, 1 insertions, 1 deletions
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

Consider giving Nix/NixOS a try! <3