I'm in a good job and not looking, but I keep my resume active on Indeed, and get emails regularly asking me to apply for positions.
If the pay isn't listed, I decline and comment that I would've considered it if they listed the salary in the ad. I also make a point of mocking them when the posted salary is well below what should be offered.
It's not much, but it makes me feel good.