You're being extremely hard on yourself here; I say so because I struggle with the same thoughts and the same issues. Have you considered that you might have some mental health issues going on that could use therapy or treatment? Or that you might be neurodivergent? I'm autistic with bipolar disorder, and perhaps adhd. I believe that if it was a moral failing on your part. You wouldn't actually be so disturbed by the difficulty you have in applying yourself. People who don't care, just don't care imo.
I have an extremely hard time due to these things. My executive functioning is pretty fucked. Motivation is something I just don't possess, to the point of not even being able to leave the house even if it's to do things I normally like to do. I'll stand up to get ready to do it, and sit right back down, it's a constant fight. It's also extremely hard to keep routines, and some regular hygiene stuff has become extremely taxing or hard to remember. Doesn't help that we are living in a hellscape, that just exacerbates things.
I'm in a period of pretty severe burnout, and it fucking sucks. But I think since I recognized that I do suffer from cognitive difficulties that other people don't, it's helped me to be a little bit kinder to myself. When I'm kinder to myself, I beat myself up less and I think that helps me to do more than I would otherwise.