aboutsummaryrefslogtreecommitdiff
path: root/bin/touchpad-props.sh
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2023-01-10 22:30:10 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2023-01-10 22:30:10 -0500
commit4c256094f728a1618f0128814f350a94d8721173 (patch)
tree1c18585a456722f397d8774671854c07e8198680 /bin/touchpad-props.sh
parent03160c3ffe02b67589b23d240a5df38cf18e6982 (diff)
downloaddotfiles-4c256094f728a1618f0128814f350a94d8721173.tar.gz
dotfiles-4c256094f728a1618f0128814f350a94d8721173.tar.xz
Rename touchpad props and add to makefile
Diffstat (limited to 'bin/touchpad-props.sh')
-rwxr-xr-xbin/touchpad-props.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/bin/touchpad-props.sh b/bin/touchpad-props.sh
deleted file mode 100755
index 0851486..0000000
--- a/bin/touchpad-props.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-touchpads="$(xinput list --name-only | grep Touchpad)"
-
-proplist='Click Method Enabled::0 1
-Tapping Enabled::1
-Tapping Drag Enabled::1
-Tapping Button Mapping Enabled::1 0'
-
-IFS='
-'
-
-for device in $touchpads ; do
- props=$(xinput --list-props "$device")
-
- for prop in $proplist ; do
- propName="$(echo "$prop" | awk -F:: '{print $1}')"
- propVal="$(echo "$prop" | awk -F:: '{print $2}')"
-
- prop="$(echo "$props" |
- sed -rne 's/^.*'"$propName"' \(([0-9]+).*$/\1/ip')"
- oldIFS="$IFS"
- IFS=' '
-
- #shellcheck disable=SC2086
- xinput --set-prop "$device" "$prop" $propVal
- #shellcheck disable=SC2086
- echo xinput --set-prop "$device" "$prop" $propVal
-
- IFS="$oldIFS"
- done
-done