I have a laptop with a hidpi display, I'm using Ubuntu 18.04 with a resolution of 3840x2160 and 200% scale. Everything software I use looks fine with the exception of one so I would like to write a script so I can automatically change, let's say scaling to 100% and resolution to 1024x768.
Is there a way to do this?