La til x240-scripts
authorEinar Jørgen Haraldseid <einar@haraldseid.net>
Wed, 26 Nov 2014 12:20:00 +0000 (13:20 +0100)
committerEinar Jørgen Haraldseid <einar@haraldseid.net>
Wed, 26 Nov 2014 12:20:00 +0000 (13:20 +0100)
x240-clickpad.sh [new file with mode: 0755]
x240-swapkeys.sh [new file with mode: 0755]

diff --git a/x240-clickpad.sh b/x240-clickpad.sh
new file mode 100755 (executable)
index 0000000..1cde0b7
--- /dev/null
@@ -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
diff --git a/x240-swapkeys.sh b/x240-swapkeys.sh
new file mode 100755 (executable)
index 0000000..4bb9ba3
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+xmodmap -e "keycode 118 = End"
+xmodmap -e "keycode 115 = Insert"