From e2a0cf2a79b43f9f86b74270f3d96fe300687804 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sat, 20 Jan 2024 12:31:58 -0500 Subject: Cleanup unused files and code. --- bin/mouse-props | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100755 bin/mouse-props (limited to 'bin/mouse-props') 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 - -- cgit v1.2.3