This is a fork of http://tools.suckless.org/slock/ . It adds invoking shellscripts on user events, and sends udev events. Furthermore, slock now reports the count of failed login attempts.