aboutsummaryrefslogtreecommitdiff
path: root/bin/mouse-props
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2024-01-20 12:31:58 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2024-01-20 12:31:58 -0500
commite2a0cf2a79b43f9f86b74270f3d96fe300687804 (patch)
treea87edf55f81e78f4d0968d6f006562090260e068 /bin/mouse-props
parentec83443853116b07f18fbef8c6de31cf157939a0 (diff)
downloaddotfiles-e2a0cf2a79b43f9f86b74270f3d96fe300687804.tar.gz
dotfiles-e2a0cf2a79b43f9f86b74270f3d96fe300687804.tar.xz
Cleanup unused files and code.
Diffstat (limited to 'bin/mouse-props')
-rwxr-xr-xbin/mouse-props32
1 files changed, 0 insertions, 32 deletions
diff --git a/bin/mouse-props b/bin/mouse-props
deleted file mode 100755
index 1fb79ae..0000000
--- a/bin/mouse-props
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-mice="$(xinput list --name-only | grep -E 'Logitech G305|Naga Pro|Orochi V2|Viper' )"
-
-proplist='Accel Profile Enabled::0 1
-Accel Speed::0'
-# Accel Speed::-0.7'
-
-IFS='
-'
-
-for device in $mice ; do
- props=$(xinput --list-props "pointer:$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 "pointer:$device" "$prop" $propVal
- #shellcheck disable=SC2086
- echo xinput --set-prop "pointer:$device" "$prop" $propVal
-
- IFS="$oldIFS"
- done
-done
-