about summary refs log tree commit diff
path: root/scripts/toggle-trackpoint.sh
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2019-12-02 18:03:13 +0300
committerAzat Bahawi <azahi@teknik.io>2019-12-02 18:03:13 +0300
commit29a3bfae91ff4843a9ea2cab5b8cd18393fbdbf4 (patch)
treecc977d45768cd4403b89182bbe26303037a55d41 /scripts/toggle-trackpoint.sh
parentfix build script error and update stack (diff)
Refactor scripts
Diffstat (limited to 'scripts/toggle-trackpoint.sh')
-rwxr-xr-xscripts/toggle-trackpoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/toggle-trackpoint.sh b/scripts/toggle-trackpoint.sh
index 2d54670..1429dcf 100755
--- a/scripts/toggle-trackpoint.sh
+++ b/scripts/toggle-trackpoint.sh
@@ -3,7 +3,7 @@
 ID=$(xinput list | grep -Eo 'TrackPoint\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