Skip to content

Instantly share code, notes, and snippets.

@yalin
Created August 22, 2023 02:20
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 yalin/5df9c90642539eba2c9e9f3a73ea11d3 to your computer and use it in GitHub Desktop.
Save yalin/5df9c90642539eba2c9e9f3a73ea11d3 to your computer and use it in GitHub Desktop.
fix Synaptics touchpad scrolling speed
#!/bin/bash
# xinput set-prop 12 345 30
device_num=12 # default value if can not find
for i in $(xinput list | awk -F 'Synaptics' '{print $2}')
do
if [[ "$i" == *"id"* ]]; then
device_num=$(echo $i | awk -F 'id=' '{print $2}')
fi;
done;
xinput set-prop "$device_num" 345 30;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment