To keep a boring job, you have to have an outside goal, that simple. Taking care of your kids. Going to school. Saving money. Getting food into the fridge. Medical insurance.
These are mostly pretty basic.

Have you had difficulty keeping your opinions to yourself and found them unwelcome? Is it possible your manner and speech are off-putting to your co-workers? What issues while at work have you had? Did they result in you loosing your job?
If so, sorry to hear that, perhaps with some more details folks here can give you more solid strategies for coping.

I have had some pretty crappy jobs, but usually socially I have been ok, so at least have found solace in joking around with my co-workers. Other jobs like in a call-center have only offered the challenge of completing more calls/data entry than anyone in the office, that sort of fairly mind-numbing stuff, but still at the end of the day you do punch out, collect pay, possibly even accrue benefits.
Daydreaming is usually a pretty good way to while away the hours of doing more physical labor, iirc, some scholars recommend physical labor for giving them time to deal with big questions.

Think Einstein. I am expecting big things from you while at your next entirely boring job!!! wink

Good luck.