Completely agree. I worked in a factory for a while, and while it was worse in many ways than my current tech job, it was so much easier to just show up and do the work.
I also worked at a factory before transitioning to programming, and can relate to everything you have said.
My research resulted in me getting an ADHD diagnosis. My brain is screwed up. It just has a weird relationship with dopamine and motivation.
Not sure if this would work for you but a low dose Adderall really helps me focus and feel good doing "slower" tasks like work. I would certainly speak to a physician if you haven't already.
I have a child, who is brilliant, and performing great at school but he is already presenting similar symptoms as myself, hopefully I can help him set healthy limits and cope without meds.