snaums · @snaums
178 followers · 8226 posts · Server toot.kif.rocks

For your pleasure:

```
#!/bin/bash
value=1
xinput
id=$(xinput | grep "Mouse" | awk '{ print $6 }' | sed -r 's/.*=([0-9]*)/\1/g')
xinput list-props $id
natscroll=$(xinput list-props $id | grep "Natural Scrolling Enabled (" | sed -r 's/.*\(([0-9]*)\).*/\1/g')
echo "Setting Device $id, prop $natscroll to $value"
xinput set-prop $id $natscroll $value
```

#xinput #x11 #linux #NaturalScrolling

Last updated 3 years ago