Natural/Reverse Scroll Ubuntu

For Ubuntu 12.04 : Synaptics Touchpad (Most Common)

#!/bin/bash

d1=$(xinput list-props "SynPS/2 Synaptics TouchPad" | grep "Synaptics Scrolling.*" | awk -F ':\t' '{print $2}' | awk -F ', ' '{print $1}')
d2=$(xinput list-props "SynPS/2 Synaptics TouchPad" | grep "Synaptics Scrolling.*" | awk -F ':\t' '{print $2}' | awk -F ', ' '{print $2}')

xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Scrolling Distance"  -$d1 -$d2
nautilus -q
nautilus -n &

For Ubuntu 11.04
I don’t know how many of you are using this right now. I used to love it, but it started to crash, and so I had to upgrade. Anyway, this is the script for reverse scroll that I used back then.

#xinput set-button-map "SynPS/2 Synaptics TouchPad" 1 2 3 5 4 7 6 8 9 10 11 12

Copy the code into a file. Name it . Save it.
With the terminal, browse to the file, and write the following command:

chmod +x file
sudo cp /path/to/file /bin/

Run the command in your terminal to see if it works. If it does, add it to your Startup Programs.

Cheers.
Leave a comment, if this helps you.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s