How long do you have to go until you’re out of school? I would view this as a challenge and try my best to learn from the guy (after all, in life you will meet people like this and not have a choice whether to listen or not, so you might as well get the practice now). Sometimes when I find it hard to concentrate, I let my brain “cool down” and I doodle and draw random things on my notes, and after drawing for a bit I can pay attention to even the most boring of things.