#!/bin/sh

#Options can be modified with xinput.  You can list all the properties available to change:
#xinput --list-props 12
#Where 12 is the id of your trackpad. It may or may not be 12.  You can list all of your devices to find which one is your trackpad, type xinput.

sleep 2
ID=`xinput | grep cyapa | cut -f 2 | sed -e 's/id=//'`

#enables tag and drag, modifies the sensitivity of tap and drag, increases the speed of the pointer, and increases the sensitivity of two finger scrolling:
xinput --set-int-prop $ID "Tap Drag Enable" 8 1
xinput --set-float-prop $ID "Tap Drag Delay" 0.060000
xinput --set-int-prop $ID "Pointer Sensitivity" 32 4


#For Australian scrolling:

#xinput --set-int-prop $ID "Scroll Australian" 8 1


#To speed up the pointer:

#xinput --set-float-prop $ID "Point Y Out Scale" 1.3

#xinput --set-float-prop $ID "Point X Out Scale" 1.3


#For faster acceleration:

#xinput --set-float-prop $ID "Quick Acceleration Factor" 2

#To disable tapping:

#xinput --set-int-prop $ID "Tap Enable" 8 0


#To disable right clicking on the right side of the touchpad's hardware button, with this set you have to two finger click to right click.

#xinput --set-int-prop $ID "Button Right Click Enable" 8 0

#Set the right click button zone size.

xinput --set-float-prop 12 "Button Right Click Zone Size" 30

#Tap pressure

xinput --set-float-prop 12 "Tap Minimum Pressure" 80
