Look for a new job, if that is an option. But remember, most jobs suck. But it is still a win, if your new job sucks less than your current job.
Try setting artificial goals, just to make your tasks interesting. Like, doing it super fast. Or automating as much as possible.
If you’re working from home, try learning something new on company time. Before you downvote me for suggesting something unethical, remember a lot of people browse Facebook at work. Even browsing HN at work can be considered unethical too!
Unless your company is working on something noble (like a cancer vaccine or something like that), it is probably just another commercial place to make a handful of people rich at the expense of many. So don’t get attached to your job, it is just a way to put food on the table.