keys: disable clickpad by using "huge" buttons

This commit is contained in:
Vincent Bernat 2014-06-11 17:41:21 +02:00
parent c6c6fca6d2
commit bcf2f66102

View file

@ -39,8 +39,13 @@ case "$use,$(uname -n),$name" in
xinput set-prop $device 'Evdev Wheel Emulation Axes' 6 7 4 5 xinput set-prop $device 'Evdev Wheel Emulation Axes' 6 7 4 5
;; ;;
XISlavePointer,zoro,"SynPS/2 Synaptics TouchPad") XISlavePointer,zoro,"SynPS/2 Synaptics TouchPad")
xinput set-prop $device 'Synaptics Soft Button Areas' 3656 5112 0 2200 2928 3656 0 2200 # [ 12.756] (--) synaptics: SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5112 (res 42)
xinput set-prop $device 'Synaptics Area' 0 0 2200 0 # [ 12.756] (--) synaptics: SynPS/2 Synaptics TouchPad: y-axis range 1408 - 3834 (res 42)
# The following is 60% 0 0 0 40% 60% 0 0
# The logic is explained here:
# http://who-t.blogspot.de/2013/12/lenovo-t440-touchpad-button.html
xinput set-prop $device 'Synaptics Soft Button Areas' 3656 0 0 0 2928 3656 0 0
xinput set-prop $device 'Synaptics Area' 1 1 1 1
;; ;;
XISlavePointer,guybrush,"SynPS/2 Synaptics TouchPad") XISlavePointer,guybrush,"SynPS/2 Synaptics TouchPad")
xinput set-prop $device 'Synaptics Off' 1 xinput set-prop $device 'Synaptics Off' 1