From 596cef6fab5dbb7235d1e446b3d160a98e087d2b Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 28 Sep 2021 21:47:00 +0800 Subject: [PATCH] docs: set touchpad by device-name/prop-name --- doc/touchpad.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/touchpad.md b/doc/touchpad.md index 0946172..9076eb7 100644 --- a/doc/touchpad.md +++ b/doc/touchpad.md @@ -8,4 +8,14 @@ libinput Natural Scrolling Enabled Default (299): 0 ``` 4. `xinput set-prop 298 1` to set Natural Scrolling -4. `xinput set-prop 299 1` to set Natural Scrolling +5. `xinput set-prop 299 1` to set Natural Scrolling + +id can be replaced by name + +```bash +#!/bin/sh + +xinput set-prop "06CB0001:00 06CB:CE78 Touchpad" "libinput Natural Scrolling Enabled" 1 +xinput set-prop "06CB0001:00 06CB:CE78 Touchpad" "libinput Accel Speed" 0.4 +``` +