Instead of doing what those silly people are saying, you need to invent your own unique study routine. Maybe take the content you're supposed to be learning and turn it into little sketches or songs or stuffty game designs.
Homework is unimaginative and doesn't do what it's supposed to. You're unfocused because the content is not relevant to you, and so you focus on things you actually care about. You need to make the school work something you care about, and to do that you have to be creative.
That's why I turned a lot of my assessments into Garry's Mod movies, 3D animations, games or speeches that were more like opera theatre.