xss-lock uses the MIT screen saver extension for X to allow running your choice of screen locker when X's screen saver activates.