#!/bin/bash TOUCHPAD="SynPS/2 Synaptics TouchPad" TRACKPOINT="TPPS/2 IBM TrackPoint" killall -9 syndaemon echo "touchpad on" xinput set-prop "${TOUCHPAD}" "Synaptics Off" 0
echo "setting soft button areas" #Order: RightButtonAreaLeft, RightButtonAreaRight, RightButtonAreaTop, RightButtonAreaBottom, MiddleButtonAreaLeft, MiddleButtonAreaRight, MitddleButtonAreaTop, MiddleButtonAreaBottom" xinput set-prop "${TOUCHPAD}" "Synaptics Soft Button Areas" 4000, 0, 4063, 0, 3000, 4000, 4063, 1500 #xinput set-prop "${TOUCHPAD}" "Synaptics Soft Button Areas" 4000, 0, 0, 4466, 3000, 3999, 0, 1500
echo "enable twofingerscrolling in both directions" xinput set-prop "${TOUCHPAD}" "Synaptics Two-Finger Scrolling" 1, 1
echo "shortening upper and lower edge to reserve space for 'just button' actions. Order: left, right, top, bottom" xinput set-prop "${TOUCHPAD}" "Synaptics Area" 0, 0, 1500, 4000 #workaround for just scrolling #xinput set-prop "${TOUCHPAD}" "Synaptics Area" 0, 4000, 1500, 0
echo "enabling palm detection" xinput set-prop "${TOUCHPAD}" "Synaptics Palm Detection" 1
#echo "Middle mouse button emulation for scrolling on trackpoint" #xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation" 1 #xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation Button" 2 #xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation Timeout" 200 #xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation Axes" 6 7 4 5 # horizontal und vertikal
echo "enable tap events" # RTCornerButton, RBCornerButton, LTCornerButton, LBCornerButton, TapButton1, TapButton2, TapButton3 xinput set-prop "${TOUCHPAD}" "Synaptics Tap Action" 2, 3, 1, 1, 1, 3, 0
echo "list actual properties" xinput list-props "${TOUCHPAD}"
echo "no touch while typing" syndaemon -i 0.5 -d
#!/bin/bash
TOUCHPAD="SynPS/2 Synaptics TouchPad"
TRACKPOINT="TPPS/2 IBM TrackPoint"
killall -9 syndaemon
echo "touchpad on"
xinput set-prop "${TOUCHPAD}" "Synaptics Off" 0
echo "setting soft button areas" Left, RightButtonArea Right, RightButtonAreaTop, RightButtonArea Bottom, MiddleButtonAre aLeft, MiddleButtonAre aRight, MitddleButtonAr eaTop, MiddleButtonAre aBottom"
#Order: RightButtonArea
xinput set-prop "${TOUCHPAD}" "Synaptics Soft Button Areas" 4000, 0, 4063, 0, 3000, 4000, 4063, 1500
#xinput set-prop "${TOUCHPAD}" "Synaptics Soft Button Areas" 4000, 0, 0, 4466, 3000, 3999, 0, 1500
echo "enable twofingerscrolling in both directions"
xinput set-prop "${TOUCHPAD}" "Synaptics Two-Finger Scrolling" 1, 1
echo "shortening upper and lower edge to reserve space for 'just button' actions. Order: left, right, top, bottom"
xinput set-prop "${TOUCHPAD}" "Synaptics Area" 0, 0, 1500, 4000
#workaround for just scrolling
#xinput set-prop "${TOUCHPAD}" "Synaptics Area" 0, 4000, 1500, 0
echo "enabling palm detection"
xinput set-prop "${TOUCHPAD}" "Synaptics Palm Detection" 1
#echo "Middle mouse button emulation for scrolling on trackpoint"
#xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation" 1
#xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation Button" 2
#xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation Timeout" 200
#xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation Axes" 6 7 4 5 # horizontal und vertikal
echo "enable tap events"
# RTCornerButton, RBCornerButton, LTCornerButton, LBCornerButton, TapButton1, TapButton2, TapButton3
xinput set-prop "${TOUCHPAD}" "Synaptics Tap Action" 2, 3, 1, 1, 1, 3, 0
echo "list actual properties"
xinput list-props "${TOUCHPAD}"
echo "no touch while typing"
syndaemon -i 0.5 -d