[improve/driver conf] Use libinput for the touchpad instad of synaptics

This commit is contained in:
Anas Elgarhy 2023-05-07 13:17:19 +03:00
parent 43acbe091c
commit e1016c11ba
No known key found for this signature in database
GPG Key ID: 0501802A1D496528
2 changed files with 11 additions and 21 deletions

View File

@ -5,7 +5,8 @@
## Ref
### Laptop stuff
* If u use a laptop like me and only use [yo-dwm][yo-dwm on github] or any other standalone WM u may notch that the touchpad doesn't work as you expect (like u can't perform the mouse buttons clicks with it), in this case, you need to configure the touchpad driver(and maybe download the driver itself). In most cases [libinput][libinput on arch wiki] is more than enough and it's installed by default with Xorg-server and Wayland, but in my case, I go with [synaptics][synaptics on arch wiki] at least for now 'cause why not?, see [30-touchpad.conf](./etc/X11/xorg.conf.d/30-touchpad.conf)
* If u use a laptop like me and only use [yo-dwm][yo-dwm on github] or any other standalone WM u may notch that the touchpad doesn't work as you expect (like u can't perform the mouse button clicks with it), in this case, you need to configure the touchpad driver(and maybe download the driver itself). In most cases [libinput][libinput on arch wiki] is more than enough and it's installed by default with Xorg-server and Wayland, and this is what I'll go with. see [30-touchpad.conf](./etc/X11/xorg.conf.d/30-touchpad.conf), but you maybe want to use [synaptics][synaptics on arch wiki] instant if u want a specific feature that doesn't exist in libinput yet like the Circular scrolling
> I notch that the disable touchpad while typing option doesn't work with me when I trayd synaptics idk why but it works just fine with libinput
* When u use ur laptop as a daily driver then u may be concerned about the battery life (especially when u using a gaming laptop) and if ur laptop is from Lenovo like me u maybe used to have control over the charger to select a specific percentage for the battery and when the battery reaches it the laptop will stop the charging and it'll run on the charger only without taking anything from the battery and u save your battery life by reducing the charging cycles and the all is happy :D, so u can use [tlp][tlp on arch wiki] for this job and u can see(or steal) my configure from [tlp.conf](./etc/tlp.conf) which is just the default one with enabling the threshold mode to stop charging at 60%
## Also available on
@ -17,5 +18,5 @@
[yo-dwm on github]: https://github.com/anas-elgarhy/yo-dwm
[libinput on arch wiki]: https://wiki.archlinux.org/title/Libinput
[synaptics on arch wiki]: https://wiki.archlinux.org/title/Touchpad_Synaptics#Natural_scrolling
[synaptics on arch wiki]: https://wiki.archlinux.org/title/Touchpad_Synaptics
[tlp on arch wiki]: https://wiki.archlinux.org/title/TLP

View File

@ -1,23 +1,12 @@
Section "InputClass"
Identifier "touchpad"
Driver "synaptics"
Driver "libinput"
MatchIsTouchpad "on"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "VertEdgeScroll" "on"
Option "VertTwoFingerScroll" "on"
Option "HorizEdgeScroll" "on"
Option "HorizTwoFingerScroll" "on"
Option "CircularScrolling" "on"
Option "CircScrollTrigger" "7"
Option "EmulateTwoFingerMinZ" "40"
Option "EmulateTwoFingerMinW" "8"
Option "CoastingSpeed" "0"
Option "FingerLow" "30"
Option "FingerHigh" "50"
Option "MaxTapTime" "125"
Option "PalmDetect" "1"
Option "PalmMinWidth" "8"
Option "PalmMinZ" "100"
Option "Tapping" "on"
Option "TappingButtonMap" "lrm"
Option "ClickMethod" "clickfinger"
Option "TappingDrag" "true"
Option "TappingDragLock" "true"
Option "NaturalScrolling" "false"
Option "DisableWhileTyping" "true"
EndSection