Skip to content

Instantly share code, notes, and snippets.

@Ethorbit
Last active February 14, 2024 06:20
Show Gist options
  • Save Ethorbit/fe666bda2e2d486890fa8d9f2bc1b27f to your computer and use it in GitHub Desktop.
Save Ethorbit/fe666bda2e2d486890fa8d9f2bc1b27f to your computer and use it in GitHub Desktop.
Sets xinput acceleration for all mice devices of the same name, in this case 'Razer Razer DeathAdder V2'
for xinput_id in $(xinput list | grep 'Razer Razer DeathAdder V2' | grep -o 'id=[0-9]*' | cut -c 4-); do
xinput --set-prop "$xinput_id" "libinput Accel Speed" -0.7
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment