20 lines
338 B
Bash
Executable File
20 lines
338 B
Bash
Executable File
#!/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 "${@}"
|