find your mouse in xinput --list
me:~$ xinput --list
⎡ Virtual core pointer
⎜ ↳ Logitech Gaming Mouse G400
mine is "Logitech Gaming Mouse G400"
edit the file as follows: vim /usr/share/X11/xorg.conf.d/50-mouse-acceleration.conf
Section "InputClass"
Identifier "Logitech Gaming Mouse G400"
MatchIsPointer "yes"
Option "AccelerationProfile" "-1"
Option "AccelerationScheme" "none"
EndSection
make sure to substitute the Identifier mouse string to the one returned by xinput --list
reboot system / restart X
xset r rate 250 50 # fast key repeat
setxkbmap -option caps:none # disable capslock toggle
xmodmap -e "keycode 66 = Escape NoSymbol Escape" # remap capslock to escape