you'll just sort of have to force yourself to do them.
or give yourself some kind of allowance if you do your work earlier.
it helps me to put my deadlines like 3 days before like wayyy before. so i don't remember concretely when the due date is, but i do it early anyways.
and put notes everywhere. on your desk, on your door, in your phone, in an agenda.
maybe in the commencement of the semester, put your GPA somewhere and whats your goal GPA (overall and for this semester).
and get a friend you can talk about class with. it might influence you to be more interested in the class itself.