Idk about the controllers, maybe there is a utility to configure those out there somewhere, but as far as the Logitech mouse is concerned, there is Piper. Works perfectly on my G502.
dafta
joined 1 month ago
Scroll down to releases.
I use it on my PC and it's installed from the distro repositories, but I found instructions for the flatpak version. Apparently some daemon needs to be installed from the repositories.