Created
March 31, 2025 02:04
-
-
Save ecoologic/c351307df5d57202dabbff6b9d8bc186 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# From https://forums.linuxmint.com/viewtopic.php?t=261998 | |
# Enable "natural scrolling" (reverse mouse wheel) in Linux | |
# to debug | |
# set -x | |
echo "reverse-mouse-scroll" | |
mouseid=$(xinput --list | grep "DaKai 2.4G RX Mouse" | sed -E 's/.*id=([0-9]+).*/\1/' | head -n1) | |
echo "DaKai" $mouseid | |
xinput --set-prop $mouseid 'libinput Natural Scrolling Enabled' 1 | |
mouseid=$(xinput --list | grep "Logitech Wireless Mouse MX Master 3" | sed -E 's/.*id=([0-9]+).*/\1/' | head -n1) | |
echo "Logi" $mouseid | |
xinput --set-prop $mouseid 'libinput Natural Scrolling Enabled' 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment