Skip to content

Instantly share code, notes, and snippets.

@tbranyen
Created July 28, 2017 22:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tbranyen/0eb89e8e2517d9205b0fe33127e6cb5c to your computer and use it in GitHub Desktop.
Save tbranyen/0eb89e8e2517d9205b0fe33127e6cb5c to your computer and use it in GitHub Desktop.
ThinkPad X1 Carbon 5th Generation libinput acceleration
touchpad_id=$(xinput --list | grep "TouchPad" | xargs -n 1 | grep "id=" | sed 's/id=//g')
accel_speed_code=$(xinput --list-props $touchpad_id | awk '/Accel Speed \(/ {print $4}' | grep -o '[0-9]\+')
# Default acceleration is too slow (non-existent)
xinput --set-prop $touchpad_id $accel_speed_code .75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment