#!/usr/bin/env bash sudo mkdir -p /etc/X11/xorg.conf.d/ echo 'Section "InputClass" Identifier "My Mouse" Driver "libinput" MatchIsPointer "yes" Option "AccelProfile" "flat" EndSection' | sudo tee --append /etc/X11/xorg.conf.d/50-mouse-acceleration.conf