Set all mouse input device to use natural scrolling
$ xinput list | egrep "slave.*pointer" | grep Mouse | grep -v XTEST | sed -e 's/^.*id=//' -e 's/\s.*$//' | xargs -IMouse sh -c 'echo "Setting mouse Mouse"; xinput get-button-map Mouse | tr " " "\n" | sort -g | xargs | sed "s,4 5,5 4,g" | xargs -i sh -c "xinput set-button-map Mouse {}; echo {};"'
Written by Steimntz Machado de Figueiredo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#