I study computer science and any time I sit down to code, I just browse or watch Youtube. Anything but do the work. Days and even months have gone by like this where I haven't done even an hour of learning. Its tough because in order to code I need to be in front of a screen but my brain refuses to study and just looks for that dopamine hit. My grades have suffered and I feel like a constant failure.
To clarify this is not an effect of the pandemic but has been happening for the past few years.
I've tried doing this and it goes well for a week or two. Then I falter and I go into a downward spiral where its a complete relapse to my old habits. :/
Just gotta break through that barrier and keep at it until force of habit takes over. I wish there were an easy switch, but some things do take a little pushthrough.
That's normal for trying to create new habits. Just keep trying, remind yourself that it works when you do it (the opposite of the little voice inside your head that tells you that you suck when you mess up), and when you (inevitably) mess up, forgive yourself and get back on track.