What worked for me recently was working on an extremely new technology outside of work. I needed an app for tracking some medical information, and I wanted it to be a web app but didn't know or was willing to learn JS. I work with and love Kotlin, and saw that efforts were being made to run it on the web through WASM. I started building using that, and so far it has been very fun. It kind of returned me to that state I had in my college days where I just wrote code for fun. There's next to no documentation, and one day I spent 3 hours just trying to make a network call. It should be frustrating, but since I don't have any obligations, it's actually just fun. Oh and I also play a bunch of video games, which is nice.