1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-26 18:11:33 +00:00
Dotfiles/Scripts/startup/touchpad.sh

16 lines
524 B
Bash
Raw Normal View History

2020-07-27 05:11:07 +00:00
#!/bin/bash
id=$(xinput | grep -shoP 'Touchpad.*id=[0-9]*' | grep -shoP '[0-9]*')
tap_id = $(xinput list-props $id | grep -shoP 'Tapping Enabled Default.+[0-9]*' | grep -sho '[0-9][0-9][0-9]')
echo $id
tap_id=$(xinput list-props $id | grep -shoP 'Tapping Enabled.+[0-9]*' | grep -m 1 -sho '[0-9][0-9][0-9]')
middle_id=$(xinput list-props $id | grep -shoP 'Middle Emulation Enabled.+[0-9]*' | grep -m 1 -sho '[0-9][0-9][0-9]')
echo $tap_id
echo $middle_id
xinput set-prop $id $tap_id 1
xinput set-prop $id $middle_id 1