Agoraphobiae

Code | Games | Geek

Inverted scrolling and Two Finger scrolling in Linux Mint 14

5 Comments

Everyone loves the inverted, physics-sensitive scrolling of Macs, so why can’t Linux have that? It’s pretty simple to set up in Linux (I did this in Linux Mint 14, but it should work for Ubuntu, etc as well). Below is the script:

#!/bin/sh

# inverted x+y scrolling for the touch pad
xinput set-button-map 13 1 2 3 5 4 7 6
# two finger scrolling
synclient VertTwoFingerScroll=1
synclient HorizTwoFingerScroll=1
synclient EmulateTwoFingerMinW=5
synclient EmulateTwoFingerMinZ=48

You will need to edit the xinput line. Run xinput list and find the id of the device you want to have inverted scrolling (in my case, the touchpad, which had id 13). Then test the device with xinput test <id>

#!/bin/sh
# Setup

# to find which device
xinput list

# to find out which buttons to reverse mapping
xinput test <id>
# For example
xinput test 13

Scroll up and down while the test command is running to find which button id your scrolling is. For me it was 4 and 5 for vertical and 6 and 7 for horizontal. Reverse these numbers in the xinput set-button-map 13 1 2 3 4 5 6 7.

Advertisements

5 thoughts on “Inverted scrolling and Two Finger scrolling in Linux Mint 14

  1. This just screwed up my touchpad…all it does is scroll, the pointer won’t move

  2. interesting @gregology, I’m trying to do this on a new LM16RC install and when I open up the dconf-editor I notice the same menu entry in the Cinnamon desktop settings, but no two-finger scroll option in there.

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