Hi there,
I am also an undergrad now. I used to be a lazy bum and not motivated to study for my exams. After I find my WHY, I began to have more enthusiasm in my studies. My grades used to be sucky and often looked down by my peers and teachers.
I wanted to prove to them I can "make it", hence its one of my main motivation. To me, getting a good grade is a personal achievement and prove to people that I am as smart as them, if not even better than them.
I guess you need to understand your "WHY".
Why are you getting your degree?
To get a better prospect job in the future?
As a personal achievement?
Don't want to lose out to your peers?
Only you have the answers.
If you can get that answer, I can assure you that you will be very motivated and focused in your studies