Well, I always dreamt about encrypting my master keys to all my digital heritage with some threshold scheme encryption like Shamir's secret sharing. I believe there is some Linux tool available: http://point-at-infinity.org/ssss/
That way N out of M of my friends would have to gather after my passing, combine the puzzle pieces and be granted with access to my stuff.
There are easier ways, though. You can just write down a password and include it with your last will, seal it and have a notary take care of it. I'd create a seperate administrator account/password for that.
You could set up two factor authentification and give them one factor now, and have the other factor stored with your things so they can collect it after your passing. Doesn't need to be complicated, create a password with 30 characters, split it in the middle and you have two factors.
There are online services for these kind of things. Or you can run some dead man switch yourself. I'm not sure what kinds of projects someone would use for that. Taking care of a dead man switch would be annoying for me.