Skip to content

Instantly share code, notes, and snippets.

@hugoShaka
Last active September 11, 2017 16:21
Show Gist options
  • Save hugoShaka/5e6df9782a6d0cb5e4bd77a09e78a448 to your computer and use it in GitHub Desktop.
Save hugoShaka/5e6df9782a6d0cb5e4bd77a09e78a448 to your computer and use it in GitHub Desktop.
How to avoid the touchpad to fuck up when you're typing.
# Thanks to : Jim Basilio http://blog.jimbasilio.me/2015/10/libinput-and-ubuntu-15-10/
# Peter Hutterer http://who-t.blogspot.fr/2016/04/why-libinput-doesnt-have-lot-of-config.html
sudo apt update
sudo apt install xserver-xorg-input-libinput
cd /usr/share/X11/xorg.conf.d/
sudo mv 50-synaptics.conf ~/synaptics.conf.bak
sudo echo '# Match on all types of devices but tablet devices and joysticks
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "True"
Option "DisableWhileTyping" "True"
EndSection
Section "InputClass"
Identifier "libinput touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection' > 90-libinput.conf
# Reboot here, now you shouldn't be able to move using the touchpad while typing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment