about summary refs log tree commit diff
path: root/scripts/toggle-touchpad.sh
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-08-16 01:46:04 +0300
committerAzat Bahawi <azat@bahawi.net>2022-08-16 01:46:04 +0300
commit3cd06b22069c009b8c5fea2d5fad5f996667d2e3 (patch)
tree4b5f1cb453de13c560bc8aa5a57952713cf360aa /scripts/toggle-touchpad.sh
parentabsolute garbage wtf (diff)
huge update-o
Diffstat (limited to '')
-rwxr-xr-xscripts/toggle-touchpad.sh10
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/toggle-touchpad.sh b/scripts/toggle-touchpad.sh
deleted file mode 100755
index 2a1c061..0000000
--- a/scripts/toggle-touchpad.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-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" = 1 ]; then
-	xinput disable "$ID"
-else
-	xinput enable "$ID"
-fi

Consider giving Nix/NixOS a try! <3