Do better stuff with touchpad preferences in i3

main
Dan Buch 3 years ago
parent 64b21d81d5
commit 86c5c5699f
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

@ -4,6 +4,7 @@ font pango:Comic Code Bold 13
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id setxkbmap -layout dvorak
exec --no-startup-id ~/.local/bin/xinput-preferences
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

@ -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 "${@}"
Loading…
Cancel
Save