diff --git a/bin/restart-touchpad b/bin/restart-touchpad new file mode 120000 index 0000000..bf5f892 --- /dev/null +++ b/bin/restart-touchpad @@ -0,0 +1 @@ +../restart-touchpad/restart-touchpad.sh \ No newline at end of file diff --git a/restart-touchpad/README.md b/restart-touchpad/README.md new file mode 100644 index 0000000..b5586f1 --- /dev/null +++ b/restart-touchpad/README.md @@ -0,0 +1,7 @@ +# restart-touchpad + +## About +-- about section here -- + +## Requirements +-- any requirements -- diff --git a/restart-touchpad/restart-touchpad.sh b/restart-touchpad/restart-touchpad.sh new file mode 100755 index 0000000..d913977 --- /dev/null +++ b/restart-touchpad/restart-touchpad.sh @@ -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