Skip to content

Instantly share code, notes, and snippets.

@xxami
Created January 17, 2015 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xxami/c3e20d6b4ed00087b50b to your computer and use it in GitHub Desktop.
Save xxami/c3e20d6b4ed00087b50b to your computer and use it in GitHub Desktop.
remove mouse acceleration, increase keyboard input repeat delay, disable/rebind capslock on x / linux ubuntu 14.10

remove mouse acceleration

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

increase keyboard input repeat delay

xset r rate 250 50 # fast key repeat

remap capslock to escape and disable toggle

setxkbmap -option caps:none # disable capslock toggle                            
xmodmap -e "keycode 66 = Escape NoSymbol Escape" # remap capslock to escape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment