From: Einar Jørgen Haraldseid <einar@haraldseid.net>
Date: Wed, 26 Nov 2014 12:20:00 +0000 (+0100)
Subject: La til x240-scripts
X-Git-Url: https://git.slaskete.net/einar-bin/commitdiff_plain/58d3a919aa14ac20c87a41a0c3d4d7b5d24e7550?hp=786a748526ff8b83773ad389dc37a3f87944d526

La til x240-scripts
---

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