It's "sort of" what I've done, only last time I changed jobs I told recruiters it'd take 20%-30% more for me to come into the office full time, and pro-rated below that.
I'm told it's a legal requirement for companies to provide that on request here in Germany, though I've never actually tried that yet, don't know any caveats.