mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-10 10:14:20 +02:00
start: enable trackpoint to work on Carbon X1
This commit is contained in:
parent
039bb8d204
commit
75e7d632d4
1 changed files with 14 additions and 0 deletions
14
rc/start.lua
14
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",
|
"xinput set-int-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Axes' 8 6 7 4 5",
|
||||||
-- Disable touchpad
|
-- Disable touchpad
|
||||||
"xinput set-int-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Off' 8 1"})
|
"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
|
end
|
||||||
|
|
||||||
os.execute(table.concat(execute, ";"))
|
os.execute(table.concat(execute, ";"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue