add restart-touchpad script

This commit is contained in:
Guilherme Rugai Freire 2024-05-28 11:25:29 -03:00
parent 6f707f4e27
commit 1083092323
No known key found for this signature in database
GPG Key ID: AC1D9B6E48E16AC1
3 changed files with 23 additions and 0 deletions

1
bin/restart-touchpad Symbolic link
View File

@ -0,0 +1 @@
../restart-touchpad/restart-touchpad.sh

View File

@ -0,0 +1,7 @@
# restart-touchpad
## About
-- about section here --
## Requirements
-- any requirements --

View File

@ -0,0 +1,15 @@
#!/bin/sh
id="$(xinput list | grep Touchpad | cut -f 2 | sed 's/id=//')"
xinput disable "$id"
xinput enable "$id"
# Set NaturalScrolling
xinput set-prop "$id" 382 -93, -93
# Set Tap to Click
xinput set-prop "$id" 389 1, 1, 1, 2, 1, 3
# Enable Horizontal and Vertical Two-Finger scrolling
xinput set-prop "$id" 384 1, 1