X-Git-Url: https://git.slaskete.net/einar-bin/blobdiff_plain/786a748526ff8b83773ad389dc37a3f87944d526..58d3a919aa14ac20c87a41a0c3d4d7b5d24e7550:/x240-clickpad.sh?ds=inline diff --git a/x240-clickpad.sh b/x240-clickpad.sh new file mode 100755 index 0000000..1cde0b7 --- /dev/null +++ b/x240-clickpad.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +# Configure the X240 ClickPad + +# 1 finger = left click, 2 finger = right click, 3 finger = middle click +synclient TapButton2=3 +synclient TapButton3=2 +synclient ClickFinger2=3 +synclient ClickFinger3=2 + +# enable horizontal two-finger scrolling (vertical is enabled by default) +synclient HorizTwoFingerScroll=1 +synclient VertTwoFingerScroll=1 + +# Where does the touch pad end to leave the remainder as real buttons +synclient AreaTopEdge=2000 + +# Areas must not overlap or it throws BadValue errors +synclient MiddleButtonAreaLeft=3000 +synclient MiddleButtonAreaRight=4049 +synclient MiddleButtonAreaTop=0 +synclient MiddleButtonAreaBottom=2000 + +synclient RightButtonAreaLeft=4050 +synclient RightButtonAreaRight=0 +synclient RightButtonAreaTop=0 +synclient RightButtonAreaBottom=2000