Skip to content

Instantly share code, notes, and snippets.

@soyuka
Forked from tbranyen/acceleration.sh
Created July 29, 2017 09:46
Show Gist options
  • Save soyuka/0c4205927195f50b08b398459f94bd94 to your computer and use it in GitHub Desktop.
Save soyuka/0c4205927195f50b08b398459f94bd94 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