Too often, I've found that the companies that don't pay well are also filled with terrible employees, simply because the only people left are those that couldn't get a job anywhere else.
Also, any manager that says "we're not going to pay you as much as the industry standard for someone with your experience, but hey, you get free soda in the break room and you can work from home a few days a week" is ripping you off. Plain and simple - he figured out that spending a few cents on sugar water lets him save $thousands on salary.
You can make six digits plus, and still work from home, and chances are you'll be working with smarter and more talented people because they just won't let any schmuck that can't get a better job stick around.