From ab7a09caa39af09c13bbd5a2edf996b803ae58e0 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 17 Jul 2023 10:21:45 +0200 Subject: [PATCH] tune-mouse: allow switch to ignore natural scrolling --- tune-mouse | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tune-mouse b/tune-mouse index 656b92a..e06aa54 100755 --- a/tune-mouse +++ b/tune-mouse @@ -1,6 +1,10 @@ #!/bin/sh -xinput set-prop "$(cat ~/.touchpad-name)" "libinput Natural Scrolling Enabled" 1 +tp_name="$(cat ~/.touchpad-name)" + +if [ "$tp_name" != none ]; then + xinput set-prop "$tp_name" "libinput Natural Scrolling Enabled" 1 +fi if [ $# -eq 1 ]; then display=$1