Skip to content

Instantly share code, notes, and snippets.

@askvictor
Created January 23, 2026 00:30
Show Gist options
  • Select an option

  • Save askvictor/1de488a5675760e423e795be779f4b10 to your computer and use it in GitHub Desktop.

Select an option

Save askvictor/1de488a5675760e423e795be779f4b10 to your computer and use it in GitHub Desktop.
My Logitech Trackball setup on Linux/Ubuntu/PopOS
$ cat /etc/X11/xorg.conf.d/99-trackball.conf
Section "InputClass"
Identifier "Trackball Configuration"
MatchProduct "Logitech USB Trackball"
Driver "libinput"
Option "NaturalScrolling" "true"
Option "ScrollMethod" "button"
Option "ScrollButton" "8"
Option "ButtonMapping" "1 2 3 4 5 6 7 2 8"
EndSection
$ gsettings set org.gnome.desktop.peripherals.trackball scroll-wheel-emulation-button 8
$ gsettings set org.gnome.desktop.peripherals.mouse natural-scroll true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment