I’ve also 100% had lulls where I just hate it and cannot be bothered to do my job or do it well, I think it ebbs and flows with what you’re being asked or required to do.
But I feel fortunate that I still enjoy programming for the most part (though not as much as 20 years ago) and haven't had too many situations where I had to force myself to do something that I would rather not.