uknowngithubuser
10/20/2018 - 5:18 PM

Invert Mouse Wheel #ubuntu #shell #utillities

Invert Mouse Wheel #ubuntu #shell #utillities

#!/bin/bash

export id=`xinput list | grep -i touchpad | awk -F"=" '{ print $2 }' | awk '{ print $1 }'`
xinput list-props "${id}" | grep "Synaptics Scrolling Distance" | sed 's/[^0-9 \t-]//g' | while read a b c;
do
 echo "${a} ${b} $((${c}*-1))";
 xinput set-prop "${id}" "${a}" "${b}" "$((${c}*-1))"
done