Do better stuff with touchpad preferences in i3

This commit is contained in:
2021-01-24 22:25:39 -05:00
parent 64b21d81d5
commit 86c5c5699f
2 changed files with 20 additions and 0 deletions

19
local/bin/xinput-preferences Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -o errexit
set -o pipefail
main() {
_setup_elan_touchpad
}
_setup_elan_touchpad() {
local etp='Elan Touchpad'
xinput list | if ! grep -q "${etp}"; then
return
fi
xinput set-prop "${etp}" 'libinput Tapping Enabled' 1
xinput set-prop "${etp}" 'libinput Natural Scrolling Enabled' 1
}
main "${@}"