Add config for touchpads

This commit is contained in:
Salt 2020-08-10 19:14:20 -05:00
parent 2557368a45
commit e2b0cafa1e
3 changed files with 16 additions and 0 deletions

View File

@ -27,6 +27,7 @@
loop: loop:
- { src: "sshd_config", dest: "/etc/ssh/sshd_config", mode: "0644" } - { src: "sshd_config", dest: "/etc/ssh/sshd_config", mode: "0644" }
- { src: "nomouseaccel.conf", dest: "/etc/X11/xorg.conf.d/90-mouse-acceleration.conf", mode: "0644" } - { src: "nomouseaccel.conf", dest: "/etc/X11/xorg.conf.d/90-mouse-acceleration.conf", mode: "0644" }
- { src: "touchpad.conf", dest: "/etc/X11/xorg.conf.d/90-touchpad.conf", mode: "0644" }
- { src: "i3.desktop", dest: "/usr/share/xsessions/i3-custom.desktop", mode: "0644" } - { src: "i3.desktop", dest: "/usr/share/xsessions/i3-custom.desktop", mode: "0644" }
- { src: "startx.desktop", dest: "/usr/share/xsessions/startx-custom.desktop", mode: "0644" } - { src: "startx.desktop", dest: "/usr/share/xsessions/startx-custom.desktop", mode: "0644" }
- name: Copy udev rules - name: Copy udev rules

View File

@ -1,6 +1,9 @@
# This file managed via Ansible
# vim:ft=xf86conf
Section "InputClass" Section "InputClass"
Identifier "mouse" Identifier "mouse"
MatchIsPointer "yes" MatchIsPointer "yes"
# Options
Option "AccelProfile" "flat" Option "AccelProfile" "flat"
Option "AccelSpeed" "-1" Option "AccelSpeed" "-1"
EndSection EndSection

View File

@ -0,0 +1,12 @@
# This file managed via Ansible
# vim:ft=xf86conf
Section "InputClass"
Identifier "touchpad"
MatchIsTouchpad "yes"
Driver "libinput"
# Options
Option "DisableWhileTyping" "yes"
Option "Tapping" "yes"
Option "TappingButtonMap" "lrm" # 1/2/3-finger taps
Option "TappingDrag" "yes"
EndSection