I like the way it works in France: There, many coffee shops have set-up co-working rooms, which are separate rooms where you can rent a place by the hour.
Yes, it is a bit more expensive (usually ~20$ for a day), but you get the same "coffee shop experience" and don't have to feel guilty or obliged to eat/drink (often not so healthy) stuff all the time.