Created
April 21, 2020 20:01
-
-
Save riveSunder/81fa7fb82e7823cc2b596c9d047f592e to your computer and use it in GitHub Desktop.
Enable scroll for Logitech Trackman Marble trackball on Ubuntu (tested on 18.04 on 2020-04-21) for right-handed use
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
# Credit goes to adrianp at https://gist.github.com/adrianp/a5458eeb2038a6240282b0d898e0391d for the solution. | |
# adrianp further credits https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse#Using_libinput | |
# This version has the buttons arranged for righties. | |
# Big left button is left click, big right button is right click, and small left button is scroll | |
# for left-handed use (scroll with small right button) change '"ScrollButton" "8"' to '"ScrollButton" "9"' | |
# and also change 'Option "ButtonMapping" "3 9 1 4 5 6 7 2 2"' if you want the right and left-click buttons reversed | |
# add the folowing to /usr/share/X11/xorg.conf.d/40-libinput.conf | |
Section "InputClass" | |
Identifier "Marble Mouse" | |
MatchProduct "Logitech USB Trackball" | |
Driver "libinput" | |
Option "ScrollMethod" "button" | |
Option "ScrollButton" "8" | |
Option "MiddleEmulation" "on" | |
Option "ButtonMapping" "1 8 3 4 5 6 7 2 2" | |
EndSection | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that you'll need to reboot before changes take effect.