For some reason this took me a lot longer to figure out than it should. I have a bunch of games on GOG which only support an Xbox style controller, but I really like my DualSense 5. I searched online, but found that people were mainly sticking to using steam. For some reason when I played my GOG games via steam it still didn’t work.
I then remembered that AntiMicroX exists and is included in the repositories of most distos/flatpak. So that’s how I made my PS5 controller work like an Xbox controller on linux 👌
So far I’ve tested this with Kingdom Come Deliverance and Mirror’s Edge


In some games which have native DualSense support I found that I need to edit the Wine Registry and set
HKEY_LOCAL_MACHINE\System\Services\winebus\DisableHidrawto 0For games like Cyberpunk 2077 I had to do nothing at all (even if to show correct prompts instead of xbox ones I had to mod it).
Anyway, for the time being, I’m using ds4drv