I wear headphones that aren't playing any music so people don't talk to me.
How did you manage to do that? Where do you do this?
I click the pause button on the recorder and just pretend I am listening. That's what I do at home.
It is rude to pretend you can't hear people to ignore them. If you don't want to talk to people you should tell them.
I did, but they don't listen to me. So, I put on my headphones to not listen to them.
Ignoring other people by faking listening to your headphones inconsiderate and not polite. You don't like it when other people are doing this to you, so don't do it to them.