I mean, I'm biased, as I enjoy writing. But when I stopped trying to come up with an idea and just read good fiction books, written in a style I hadn't really tried out before, voraciously, gobbling them up, I got a fair number of ideas that I was actually excited to write about.
Stop thinking about ideas. Do what you like to do in your free time; read, doodle, whatever. Read good books, learn interesting things.
You reflect the media you consume. Consume good media - stuff that makes you happy, stuff that makes you think, stuff that makes you feel. But stop trying to come up with goals, stop waiting for an idea to hit you. I did that for a while with writing, then I couldn't use electronics for a bit and I gulped down those books and I had cool book ideas, weird acronyms that suggested evil organizations, stuff like that. I don't know what the programming analog of that would be - or the nonprogramming analog that doesn't involve writing.
But just find something you enjoy, doesn't have to be related to coding, and do it.
Also, stop thinking about stuff being "worthwhile". Something you like that doesn't hurt other people is worth doing, and if it happens to be something weird, like gardening while hula-hooping, or pretty much anything and a unicycle, that's okay.