The support for the newly added webcam mode for the GoPro(8&9) is pretty poor on Linux. I found some tutorials out there that describe the rough steps, but always require some personal adaptions. To simplify this and to get en par with Windows, I created this script. Enjoy!
If you find any bugs or just have an enhancement request, feel free to open an issue on GitHub or just simply post it here.