If it's getting worse, you haven't hit full burnout yet. You should stop right now unless you really want to suffer that, let this be a cautionary tale:
http://jacquesmattheij.com/dealing-with-burn-out I would just give a 2 week notice out of the blue. I'd say I'd made plans for a year's 'sabbatical', and I would give that to the company as the primary excuse for leaving -- if you can work out a deal where they'll hire you back then great but don't hold your breath. If you don't have a year's expenses saved up then you should also think about moving to a less expensive area. You can always move back when (and if) you decide to get a job in the area again, which may be much less than a year but if at the end of the year you still feel aversion your next Ask HN should be on reentering the job market but wanting to transition out of a pure programming role into something else similarly well paid (but maybe not even in tech).
Edit: Downvoters may not think this response is justified, but full burnout is very serious. https://en.wikipedia.org/wiki/Burnout_%28psychology%29 If you're still at the stage where a "break", even one so long as a year, can help you get your head back in the game, you need to take advantage of that now rather than later before you burn out completely and spend at least a year but maybe even a decade to build yourself back up to a passable shadow of your former self, productivity-in-the-field-wise. That you have been struggling to fight burnout for a year already while it's getting worse suggests you need a longer break and perhaps a big shift in day-to-day work rather than a simple week or two near a beach without internet.