summaryrefslogtreecommitdiff
path: root/502.sh
diff options
context:
space:
mode:
Diffstat (limited to '502.sh')
-rw-r--r--502.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/502.sh b/502.sh
new file mode 100644
index 0000000..aaf1338
--- /dev/null
+++ b/502.sh
@@ -0,0 +1,6 @@
+for id in `xinput --list|grep 'Logitech Gaming Mouse G502'|perl -ne 'while (m/id=(\d+)/g){print "$1\n";}'`; do
+ echo "setting device ID $id"
+ #notify-send -t 50000 'Mouse fixed'
+ xinput set-prop $id "Device Accel Velocity Scaling" 100
+ xinput set-prop $id "Device Accel Constant Deceleration" 200
+done