I used to have this attitude until my final years.
Then I realized one day I'll die and it's absolutely unimportant with what grades I graduate. I stopped giving any fucks about school or studying and skipped class from time to time.
Miraculously my grades improved