I'm happy enough with the libinput driver that I don't want to go building a whole custom driver from source, but I really liked the "pixel-perfect scrolling in Firefox" tip at the end.
Thank you for posting this! I recently installed linux on my MacBook Air and the biggest thing I missed from macOS was how nice the trackpad was, especially scroll inertia and 3-finger drag. Now I'm completely happy with my decision to switch.
Really happy to see I'm not the only one using Ubuntu on a MacBook air! If anyone is looking for the most customizable Ubuntu desktop (and my favorite window
manager since 2010), I highly recommend compiz!
You'll log out of GNOME, click the settings cog, and select Flashback-Compiz. Then you'll see a wonderfully clean desktop, and then you can go into Applications -> Administration -> Compiz Config Settings, and you'll have complete and total control over your desktop!
This is cool, but this doesn't really work when you are running a wayland session. Also the default libinput driver on wayland already catches multitouch events with macbook without issues. The window manager just has to handle them.
I have done some exploring to get better touchpad gestures with gnome on wayland: https://github.com/mpiannucci/gnome-shell-extended-gestures . Its an incomplete project that I work on slowly when I get the time between my job and freelancing, but slowly coming along and meets my personal needs fine.
Maybe pinch gestures are not the right way to put it. Maybe spread is better? Like with 3 or four fingers spreading from or converging to center. MacOS can handle it fine.