From 58d3a919aa14ac20c87a41a0c3d4d7b5d24e7550 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Einar=20J=C3=B8rgen=20Haraldseid?= Date: Wed, 26 Nov 2014 13:20:00 +0100 Subject: [PATCH 1/1] La til x240-scripts --- x240-clickpad.sh | 27 +++++++++++++++++++++++++++ x240-swapkeys.sh | 3 +++ 2 files changed, 30 insertions(+) create mode 100755 x240-clickpad.sh create mode 100755 x240-swapkeys.sh 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" -- 2.30.2