feat: touchpad configuration
This commit is contained in:
parent
f002b34b6f
commit
3df850e4fe
6 changed files with 16 additions and 8 deletions
14
.xinitrc
14
.xinitrc
|
@ -6,11 +6,19 @@ numlockx
|
|||
|
||||
# mouse
|
||||
(
|
||||
DEV="$(xinput | grep Mouse | grep -Po 'id=\d+' | grep -Po '\d+')"
|
||||
PROP='libinput Accel Profile Enabled'
|
||||
|
||||
for id in $(xinput list --id-only); do
|
||||
xinput set-prop "$id" "$PROP" 0, 1 2> /dev/null
|
||||
done
|
||||
xinput set-prop "$DEV" 'libinput Accel Profile Enabled' 0, 1
|
||||
)
|
||||
|
||||
# touchpad
|
||||
(
|
||||
DEV="$(xinput | grep Touchpad | grep -Po 'id=\d+' | grep -Po '\d+')"
|
||||
|
||||
xinput set-prop "$DEV" 'libinput Natural Scrolling Enabled' 1
|
||||
xinput set-prop "$DEV" 'libinput Tapping Enabled' 1
|
||||
xinput set-prop "$DEV" 'libinput Click Method Enabled' 0, 1
|
||||
)
|
||||
|
||||
# display
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue