tune-mouse: change scroll direction on mantel
This commit is contained in:
parent
757bb3a323
commit
144a78cf72
1 changed files with 9 additions and 1 deletions
10
tune-mouse
10
tune-mouse
|
|
@ -3,7 +3,15 @@
|
|||
tp_name="$(cat ~/.touchpad-name)"
|
||||
|
||||
if [ "$tp_name" != none ]; then
|
||||
xinput set-prop "$tp_name" "libinput Natural Scrolling Enabled" 1
|
||||
case "$(hostname)" in
|
||||
mantel)
|
||||
value=0
|
||||
;;
|
||||
*)
|
||||
value=1
|
||||
;;
|
||||
esac
|
||||
xinput set-prop "$tp_name" "libinput Natural Scrolling Enabled" "$value"
|
||||
fi
|
||||
|
||||
if [ $# -eq 1 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue