EbonJaeger Sorry for taking a bit of time to reply, it solved most of my problems.
I've noticed two things which I'm not sure if they're related to the config or not. One is that my laptop does not seem to go into hibernation anymore? A bit odd, the screen goes off but I've noticed if I just close the lid or let the screen get blank it goes to sleep but after many hours I hear the sound that the battery is running low and then it 'dies'. After adding a charger it remembers where I was though, so not too bad. I have checked my power saving settings and they should be correct. But this script should not have anything to do with this right?
The second thing is when watching videos I notice the screen not flickering per say but that I can see some slight tearing. It's not that bad, and besides that all other applications and browsing (including Google maps, which was impossible before) works great now. So, I'm happy with the config. 🙂 Would be sweet to fix the other two things but this is totally bearable. Have not tried using the config with the compositor turned off, that could be one test of course.