Add more examples.

This commit is contained in:
Cyteen 2018-02-19 12:57:48 +00:00
parent 50b073ee84
commit ecf6fff359
1 changed files with 28 additions and 2 deletions

View File

@ -1,5 +1,12 @@
TRACKPAD=51-synapics-trackpad.conf
TRACKPOINT=52-alps-trackpoint.conf
XORG_CONFDIR=/etc/X11/xorg.conf.d
mkdir -p ${XORG_CONFDIR}
# trackpoint
echo > /etc/X11/xorg.conf.d/trackpoint.conf << 'EOF'
echo > ${XORG_CONFDIR}/${TRACKPOINT} <<EOF
Section "InputClass"
Identifier "TrackPoint Clone Acceleration and Middle Click Emulation"
MatchProduct "DualPoint Stick"
@ -17,7 +24,7 @@ EndSection
EOF
# trackpad
echo > /etc/X11/xorg.conf.d/trackpad.conf << 'EOF'
echo > ${XORG_CONFDIR}/${TRACKPAD} <<EOF
Section "InputDevice"
Identifier "SynapticsMouse1"
Driver "synaptics"
@ -42,3 +49,22 @@ Section "InputDevice"
Option "TopEdge" "120"
EndSection
EOF
# cat /sys/devices/platform/i8042/serio1/input/input6/name
## AlpsPS/2 ALPS DualPoint TouchPad
cat > ${XORG_CONFDIR}/${TRACKPOINT} <<EOF
Section "InputClass"
Identifier "trackpoint catchall"
MatchIsPointer "true"
MatchProduct "AlpsPS/2 ALPS DualPoint Stick"
MatchDevicePath "/dev/input/event*"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
Option "VertResolution" "100"
Option "HorizResolution" "100"
EndSection
EOF