A very simple curtain rod support with size parameters that can be adjusted in OpenSCAD for your particular situation.
Plastic may not be the best material for a very heavy rod/curtain and it may start to deform over time, but for light-duty applications it can get the job done.
The author marked this model as their own original creation.