From 75e7d632d498a986b07a955b75d92af9211c4de2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 8 Jun 2014 07:37:57 +0200 Subject: [PATCH] start: enable trackpoint to work on Carbon X1 --- rc/start.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rc/start.lua b/rc/start.lua index ecbb176..2f76381 100644 --- a/rc/start.lua +++ b/rc/start.lua @@ -50,6 +50,20 @@ elseif config.hostname == "guybrush" then "xinput set-int-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Axes' 8 6 7 4 5", -- Disable touchpad "xinput set-int-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Off' 8 1"}) +elseif config.hostname == "zoro" then + execute = awful.util.table.join( + execute, { + -- Keyboard and mouse + "setxkbmap us,fr '' compose:ralt grp:rctrl_rshift_toggle", + "xmodmap -e 'keysym Home = Control_L'", + "xmodmap -e 'keysym End = Control_L'", + -- Wheel emulation + "xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation' 1", + "xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Button' 2", + "xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Axes' 6 7 4 5", + -- Make touchpad buttons work + "xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Soft Button Areas' 3656 5112 0 2200 2928 3656 0 2200", + "xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Area' 0 0 2200 0"}) end os.execute(table.concat(execute, ";"))