I am running Fedora 34 and ran your script by renaming the F30 scripts to 34 and it works fine, although GDM no longer detects my external display.
Specs:
- HP OMEN 15 ce-020tx (2018)
- NVIDIA GeForce GTX1050
- Intel Core i7-7700HQ (w/ Intel UHD630)
intel-virtual-output throws No VIRTUAL outputs on ":0". and X throws [drm] Failed to open DRM device for pci:0000:01:00.0: -19