Created
August 22, 2023 02:20
-
-
Save yalin/5df9c90642539eba2c9e9f3a73ea11d3 to your computer and use it in GitHub Desktop.
fix Synaptics touchpad scrolling speed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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