mirror of
https://github.com/GRFreire/scripts.git
synced 2026-01-09 04:49:38 +00:00
add restart-touchpad script
This commit is contained in:
parent
6f707f4e27
commit
1083092323
1
bin/restart-touchpad
Symbolic link
1
bin/restart-touchpad
Symbolic link
@ -0,0 +1 @@
|
||||
../restart-touchpad/restart-touchpad.sh
|
||||
7
restart-touchpad/README.md
Normal file
7
restart-touchpad/README.md
Normal file
@ -0,0 +1,7 @@
|
||||
# restart-touchpad
|
||||
|
||||
## About
|
||||
-- about section here --
|
||||
|
||||
## Requirements
|
||||
-- any requirements --
|
||||
15
restart-touchpad/restart-touchpad.sh
Executable file
15
restart-touchpad/restart-touchpad.sh
Executable 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
|
||||
Loading…
Reference in New Issue
Block a user