I agree with Andrew, side projects are a great way to rediscover joy. From my own experience:
- Decompress and seek fun, instead of aiming to "get a project done". Follow whatever excites you. If nothing excites you, step away from the keyboard. Go for a walk, bring a notebook.
Be aware it is extremely god-based in an unnerving way if you're not into religion. There are many alternatives if you don't want to go through a faith-based reboot.
I did this a few years ago after the layoff wave and it was transformative